Invalidate GrTexture mipmap on content change notification
authorjunov <junov@chromium.org>
Mon, 15 Jun 2015 16:48:15 +0000 (09:48 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 15 Jun 2015 16:48:15 +0000 (09:48 -0700)
commitda5469d7bc0dc089d098f5a64a818ed079cc0930
treef60f0e26ae41c98a35b83560e420db3b33692dc1
parent27631bd5936e03fcfe854a8aa4e55c8b959a10b3
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
include/core/SkPixelRef.h
include/gpu/SkGrPixelRef.h
src/core/SkPixelRef.cpp
src/gpu/SkGrPixelRef.cpp
tests/GrTextureMipMapInvalidationTest.cpp [new file with mode: 0644]