Index: tests/DrawBitmapRectTest.cpp |
diff --git a/tests/DrawBitmapRectTest.cpp b/tests/DrawBitmapRectTest.cpp |
index 9c0c6839b25db292479d6a6e57efdece9cec44cf..bde0095df9a8adc0b4a1cab77e729b8ae420111f 100644 |
--- a/tests/DrawBitmapRectTest.cpp |
+++ b/tests/DrawBitmapRectTest.cpp |
@@ -20,14 +20,14 @@ |
// A BitmapFactory that always fails when asked to return pixels. |
class FailureImageGenerator : public SkImageGenerator { |
public: |
- FailureImageGenerator() { } |
- virtual ~FailureImageGenerator() { } |
- |
+ FailureImageGenerator() : SkImageGenerator(SkImageInfo::MakeN32Premul(100, 100)) {} |
protected: |
+#ifdef SK_SUPPORT_LEGACY_BOOL_ONGETINFO |
bool onGetInfo(SkImageInfo* info) SK_OVERRIDE { |
*info = SkImageInfo::MakeN32Premul(100, 100); |
return true; |
} |
+#endif |
// default onGetPixels() returns kUnimplemented, which is what we want. |
}; |