Index: tests/DrawBitmapRectTest.cpp |
diff --git a/tests/DrawBitmapRectTest.cpp b/tests/DrawBitmapRectTest.cpp |
index f294ae7e6e44bf99c930c13a42dddf95afc30765..aa69de4bd4f6d5369a9e278c2e117e6607d338de 100644 |
--- a/tests/DrawBitmapRectTest.cpp |
+++ b/tests/DrawBitmapRectTest.cpp |
@@ -22,20 +22,16 @@ class FailureImageGenerator : public SkImageGenerator { |
public: |
FailureImageGenerator() { } |
virtual ~FailureImageGenerator() { } |
- virtual bool getInfo(SkImageInfo* info) SK_OVERRIDE { |
+ |
+protected: |
+ virtual bool onGetInfo(SkImageInfo* info) SK_OVERRIDE { |
info->fWidth = 100; |
info->fHeight = 100; |
info->fColorType = kN32_SkColorType; |
info->fAlphaType = kPremul_SkAlphaType; |
return true; |
} |
- 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; |
- } |
+ // default onGetPixels() returns false, which is what we want. |
}; |
// crbug.com/295895 |