diff options
author | scroggo <scroggo@google.com> | 2015-03-17 05:02:17 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-17 05:02:17 -0700 |
commit | 9552662e9fee5eb0ef435e52ab9db505d7ebe4ad (patch) | |
tree | 14784df8eb591511d7a3580ebec89636e4d16710 /tests | |
parent | d0a840d4d8bb6ebc9981cc331b1b231a6c6e0928 (diff) |
Option for SkCodec to treat dst as all zeroes.
This recreates SkImageDecoder's feature to skip writing zeroes for
SkCodec.
Review URL: https://codereview.chromium.org/980903002
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CachedDecodingPixelRefTest.cpp | 1 | ||||
-rw-r--r-- | tests/DrawBitmapRectTest.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/CachedDecodingPixelRefTest.cpp b/tests/CachedDecodingPixelRefTest.cpp index 3882026c77..d6edda75cb 100644 --- a/tests/CachedDecodingPixelRefTest.cpp +++ b/tests/CachedDecodingPixelRefTest.cpp @@ -190,6 +190,7 @@ protected: } virtual Result onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, + const Options&, SkPMColor ctable[], int* ctableCount) SK_OVERRIDE { REPORTER_ASSERT(fReporter, pixels != NULL); REPORTER_ASSERT(fReporter, rowBytes >= info.minRowBytes()); diff --git a/tests/DrawBitmapRectTest.cpp b/tests/DrawBitmapRectTest.cpp index 9203879a9e..9c0c6839b2 100644 --- a/tests/DrawBitmapRectTest.cpp +++ b/tests/DrawBitmapRectTest.cpp @@ -28,7 +28,7 @@ protected: *info = SkImageInfo::MakeN32Premul(100, 100); return true; } - // default onGetPixels() returns false, which is what we want. + // default onGetPixels() returns kUnimplemented, which is what we want. }; // crbug.com/295895 |