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 /src/images | |
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 'src/images')
-rw-r--r-- | src/images/SkDecodingImageGenerator.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/images/SkDecodingImageGenerator.cpp b/src/images/SkDecodingImageGenerator.cpp index f9b9393e00..170397dda1 100644 --- a/src/images/SkDecodingImageGenerator.cpp +++ b/src/images/SkDecodingImageGenerator.cpp @@ -43,7 +43,7 @@ protected: return true; } virtual Result onGetPixels(const SkImageInfo& info, - void* pixels, size_t rowBytes, + void* pixels, size_t rowBytes, const Options&, SkPMColor ctable[], int* ctableCount) SK_OVERRIDE; virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3], SkYUVColorSpace* colorSpace) SK_OVERRIDE; @@ -148,7 +148,8 @@ SkData* DecodingImageGenerator::onRefEncodedData() { } SkImageGenerator::Result DecodingImageGenerator::onGetPixels(const SkImageInfo& info, - void* pixels, size_t rowBytes, SkPMColor ctableEntries[], int* ctableCount) { + void* pixels, size_t rowBytes, const Options& options, SkPMColor ctableEntries[], + int* ctableCount) { if (fInfo != info) { // The caller has specified a different info. This is an // error for this kind of SkImageGenerator. Use the Options |