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

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 f4ca064d512ec795eb4a64777c4e7861ba5b1267..fd3907a91dbfec4c0b9a86702d7c75b12fed7db1 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()->resourcePriv().makeBudgeted();

Powered by Google App Engine
This is Rietveld 408576698