Index: src/core/SkSpecialImage.cpp |
diff --git a/src/core/SkSpecialImage.cpp b/src/core/SkSpecialImage.cpp |
index e750571ff316e53b84b2aee273a0731adc3a389e..5320f046e7dc9c7c532d00a7a1b8ba6bbff06140 100644 |
--- a/src/core/SkSpecialImage.cpp |
+++ b/src/core/SkSpecialImage.cpp |
@@ -18,6 +18,7 @@ |
#if SK_SUPPORT_GPU |
#include "GrContext.h" |
#include "GrTexture.h" |
+#include "GrTextureProxy.h" |
#include "GrTextureParams.h" |
#include "GrTextureProxy.h" |
#include "SkGr.h" |
@@ -375,6 +376,16 @@ public: |
, fAddedRasterVersionToCache(false) { |
} |
+ SkSpecialImage_Gpu(const SkIRect& subset, |
+ uint32_t uniqueID, sk_sp<GrTextureProxy> tex, SkAlphaType at, |
+ sk_sp<SkColorSpace> colorSpace, const SkSurfaceProps* props) |
+ : INHERITED(subset, uniqueID, props) |
+ //, fTexture(std::move(tex)) |
+ , fAlphaType(at) |
+ , fColorSpace(std::move(colorSpace)) |
+ , fAddedRasterVersionToCache(false) { |
+ } |
+ |
~SkSpecialImage_Gpu() override { |
if (fAddedRasterVersionToCache.load()) { |
SkNotifyBitmapGenIDIsStale(this->uniqueID()); |