diff options
Diffstat (limited to 'tests/DrawBitmapRectTest.cpp')
-rw-r--r-- | tests/DrawBitmapRectTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/DrawBitmapRectTest.cpp b/tests/DrawBitmapRectTest.cpp index 9c0c6839b2..bde0095df9 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. }; |