Reland "Initiate regeneration of mipmaps from proxy DAG land"
This is a reland of fe19203eb7d7e8bef528287494d82c2eb4efff0e
Original change's description:
> Initiate regeneration of mipmaps from proxy DAG land
>
> This allows us to resolve all the textures before executing a command
> buffer, rather than interrupting execution as is currently done in the
> GL backend.
>
> Change-Id: I998546b312d24cf47fc2c837e7c94fbf95571af0
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/230636
> Commit-Queue: Chris Dalton <csmartdalton@google.com>
> Reviewed-by: Robert Phillips <robertphillips@google.com>
Change-Id: Ic904d0b1bcb451bcb74cfae2204fb7297eaff108
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/234016
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrTextureResolveManager.h b/src/gpu/GrTextureResolveManager.h
index 4b0eea6..c0da50a 100644
--- a/src/gpu/GrTextureResolveManager.h
+++ b/src/gpu/GrTextureResolveManager.h
@@ -9,7 +9,7 @@
#define GrTextureResolveManager_DEFINED
#include "include/core/SkRefCnt.h"
-#include "include/gpu/GrTypes.h"
+#include "src/gpu/GrDrawingManager.h"
class GrCaps;
class GrDrawingManager;
@@ -26,19 +26,14 @@
explicit GrTextureResolveManager(GrDrawingManager* drawingManager)
: fDrawingManager(drawingManager) {}
- enum class ResolveFlags : bool {
- kNone = 0,
- kMipMaps = 1 << 0,
- // TODO: kMSAA = 1 << 1
- };
-
GrRenderTask* newTextureResolveRenderTask(
- sk_sp<GrTextureProxy>, ResolveFlags, const GrCaps&) const;
+ sk_sp<GrTextureProxy> proxy, GrTextureResolveFlags flags, const GrCaps& caps) const {
+ SkASSERT(fDrawingManager);
+ return fDrawingManager->newTextureResolveRenderTask(std::move(proxy), flags, caps);
+ }
private:
GrDrawingManager* fDrawingManager;
};
-GR_MAKE_BITFIELD_CLASS_OPS(GrTextureResolveManager::ResolveFlags);
-
#endif