Index: tests/DrawBitmapRectTest.cpp |
diff --git a/tests/DrawBitmapRectTest.cpp b/tests/DrawBitmapRectTest.cpp |
index aa69de4bd4f6d5369a9e278c2e117e6607d338de..f294ae7e6e44bf99c930c13a42dddf95afc30765 100644 |
--- a/tests/DrawBitmapRectTest.cpp |
+++ b/tests/DrawBitmapRectTest.cpp |
@@ -22,16 +22,20 @@ |
public: |
FailureImageGenerator() { } |
virtual ~FailureImageGenerator() { } |
- |
-protected: |
- virtual bool onGetInfo(SkImageInfo* info) SK_OVERRIDE { |
+ virtual bool getInfo(SkImageInfo* info) SK_OVERRIDE { |
info->fWidth = 100; |
info->fHeight = 100; |
info->fColorType = kN32_SkColorType; |
info->fAlphaType = kPremul_SkAlphaType; |
return true; |
} |
- // default onGetPixels() returns false, which is what we want. |
+ virtual bool getPixels(const SkImageInfo& info, |
+ void* pixels, |
+ size_t rowBytes) SK_OVERRIDE { |
+ // this will deliberately return false if they are asking us |
+ // to decode into pixels. |
+ return false; |
+ } |
}; |
// crbug.com/295895 |