Index: src/image/SkImage_Base.h |
diff --git a/src/image/SkImage_Base.h b/src/image/SkImage_Base.h |
index da87e42888f7b8f51750653fc3c59e3eaa24810c..9e2efe98b5bd8c6a92ac5f2ae1478172ec44d055 100644 |
--- a/src/image/SkImage_Base.h |
+++ b/src/image/SkImage_Base.h |
@@ -26,7 +26,7 @@ public: |
SkImage_Base(int width, int height, uint32_t uniqueID); |
virtual ~SkImage_Base(); |
- virtual const void* onPeekPixels(SkImageInfo*, size_t* /*rowBytes*/) const { return nullptr; } |
+ virtual bool onPeekPixels(SkPixmap*) const { return false; } |
// Default impl calls onDraw |
virtual bool onReadPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRowBytes, |
@@ -74,7 +74,7 @@ private: |
typedef SkImage INHERITED; |
}; |
-static inline SkImage_Base* as_IB(SkImage* image) { |
+static inline SkImage_Base* as_IB(SkImage* image) { |
return static_cast<SkImage_Base*>(image); |
} |