Index: src/core/SkImageCacherator.cpp |
diff --git a/src/core/SkImageCacherator.cpp b/src/core/SkImageCacherator.cpp |
index 75fef5a8afe3bbd4db4078281d18c38840a84788..3050084f9de6bcce328b24aff9c4adb3f95ff8a2 100644 |
--- a/src/core/SkImageCacherator.cpp |
+++ b/src/core/SkImageCacherator.cpp |
@@ -292,7 +292,13 @@ protected: |
// GrTexture* generateTextureForParams(GrContext*, const SkGrStretch&) override; |
GrTexture* refOriginalTexture(GrContext* ctx) override { |
- return fCacher->lockTexture(ctx, fOriginalKey, fClient); |
+ GrTexture* tmp = fCacher->lockTexture(ctx, fOriginalKey, fClient); |
+ |
+ if (!fOriginalKey.isValid() && tmp->fromRawPixels2()) { |
+ tmp->setException(true); |
+ } |
+ |
+ return tmp; |
} |
void makeCopyKey(const CopyParams& stretch, GrUniqueKey* paramsCopyKey) override { |