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

Unified Diff: src/image/SkImage_Gpu.h

Issue 920513003: Make filters use SkImage instead of SkBitmap Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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
Index: src/image/SkImage_Gpu.h
diff --git a/src/image/SkImage_Gpu.h b/src/image/SkImage_Gpu.h
index f20625a29e8ab8bc360388a8602ed01cb440918d..e0130ea4812622226dfbcfb22c3431a7f55846b5 100644
--- a/src/image/SkImage_Gpu.h
+++ b/src/image/SkImage_Gpu.h
@@ -36,6 +36,8 @@ public:
bool isOpaque() const SK_OVERRIDE;
+ size_t getSize() const SK_OVERRIDE { return fBitmap.getSize(); }
+
void applyBudgetDecision() const {
if (fBudgeted) {
fBitmap.getTexture()->cacheAccess().makeBudgeted();

Powered by Google App Engine
This is Rietveld 408576698