Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: src/core/SkPixelRef.cpp

Issue 1177843007: Invalidate GrTexture mipmap on content change notification (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: typo fix Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/gpu/SkGrPixelRef.h ('k') | src/gpu/SkGrPixelRef.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPixelRef.cpp
diff --git a/src/core/SkPixelRef.cpp b/src/core/SkPixelRef.cpp
index 4d6526882070d6decec685e0150127322bf75e1d..cfe93fda5883713144ff51b083a5bda6b26e85f5 100644
--- a/src/core/SkPixelRef.cpp
+++ b/src/core/SkPixelRef.cpp
@@ -335,6 +335,7 @@ void SkPixelRef::notifyPixelsChanged() {
#endif
this->callGenIDChangeListeners();
this->needsNewGenID();
+ this->onNotifyPixelsChanged();
}
void SkPixelRef::changeAlphaType(SkAlphaType at) {
@@ -355,6 +356,8 @@ bool SkPixelRef::onReadPixels(SkBitmap* dst, const SkIRect* subset) {
return false;
}
+void SkPixelRef::onNotifyPixelsChanged() { }
+
SkData* SkPixelRef::onRefEncodedData() {
return NULL;
}
« no previous file with comments | « include/gpu/SkGrPixelRef.h ('k') | src/gpu/SkGrPixelRef.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698