diff options
author | 2015-03-19 08:31:14 -0700 | |
---|---|---|
committer | 2015-03-19 08:31:14 -0700 | |
commit | 3ef71e343bf075888fb50892350390b4dd47de24 (patch) | |
tree | d4765ef144928600322cf21bdb41b37f05a55697 /tests/SurfaceTest.cpp | |
parent | 647211f1243f2dc925588e75038be49cad7b5431 (diff) |
guarded change to SkImageGenerator to make getInfo() const
BUG=skia:
Review URL: https://codereview.chromium.org/1017293002
Diffstat (limited to 'tests/SurfaceTest.cpp')
-rw-r--r-- | tests/SurfaceTest.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp index 9ce9d5fbe8..6142af9ed1 100644 --- a/tests/SurfaceTest.cpp +++ b/tests/SurfaceTest.cpp @@ -67,11 +67,8 @@ enum ImageType { #include "SkImageGenerator.h" class EmptyGenerator : public SkImageGenerator { -protected: - bool onGetInfo(SkImageInfo* info) SK_OVERRIDE { - *info = SkImageInfo::Make(0, 0, kN32_SkColorType, kPremul_SkAlphaType); - return true; - } +public: + EmptyGenerator() : SkImageGenerator(SkImageInfo::MakeN32Premul(0, 0)) {} }; static void test_empty_image(skiatest::Reporter* reporter) { |