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

Unified Diff: src/image/SkImage_Raster.cpp

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_Raster.cpp
diff --git a/src/image/SkImage_Raster.cpp b/src/image/SkImage_Raster.cpp
index 940d5323789d6c01eb6051834ae6dbb59f386897..2bf2ce993f254e064d8e58c8fb0b2ebebc0b36a9 100644
--- a/src/image/SkImage_Raster.cpp
+++ b/src/image/SkImage_Raster.cpp
@@ -70,11 +70,13 @@ public:
const SkMatrix* localMatrix) const SK_OVERRIDE;
bool isOpaque() const SK_OVERRIDE;
+ size_t getSize() const SK_OVERRIDE { return fBitmap.getSize(); }
SkImage_Raster(const SkBitmap& bm, const SkSurfaceProps* props)
: INHERITED(bm.width(), bm.height(), props)
, fBitmap(bm) {}
+
private:
SkImage_Raster() : INHERITED(0, 0, NULL) {}

Powered by Google App Engine
This is Rietveld 408576698