diff options
author | 2015-06-15 09:48:15 -0700 | |
---|---|---|
committer | 2015-06-15 09:48:15 -0700 | |
commit | da5469d7bc0dc089d098f5a64a818ed079cc0930 (patch) | |
tree | f60f0e26ae41c98a35b83560e420db3b33692dc1 /include/core/SkPixelRef.h | |
parent | 27631bd5936e03fcfe854a8aa4e55c8b959a10b3 (diff) |
Invalidate GrTexture mipmap on content change notification
This fix is necessary to correctly propagate invalidations that
are external to skia. For example, when drawing video or WebGL
into a 2D canvas in Chrome, with mipmaps enabled.
BUG=crbug.com/498356
TEST=GrTextureMipMapInvalidationTest
Review URL: https://codereview.chromium.org/1177843007
Diffstat (limited to 'include/core/SkPixelRef.h')
-rw-r--r-- | include/core/SkPixelRef.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h index 3898269ef4..c02664df7d 100644 --- a/include/core/SkPixelRef.h +++ b/include/core/SkPixelRef.h @@ -313,6 +313,9 @@ protected: // default impl returns NULL. virtual SkData* onRefEncodedData(); + // default impl does nothing. + virtual void onNotifyPixelsChanged(); + // default impl returns false. virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3], SkYUVColorSpace* colorSpace); |