aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/lazy
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@google.com>2015-03-17 05:02:17 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-17 05:02:17 -0700
commit9552662e9fee5eb0ef435e52ab9db505d7ebe4ad (patch)
tree14784df8eb591511d7a3580ebec89636e4d16710 /src/lazy
parentd0a840d4d8bb6ebc9981cc331b1b231a6c6e0928 (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/lazy')
-rw-r--r--src/lazy/SkDiscardablePixelRef.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lazy/SkDiscardablePixelRef.cpp b/src/lazy/SkDiscardablePixelRef.cpp
index b6dec1b3a1..b810c2b183 100644
--- a/src/lazy/SkDiscardablePixelRef.cpp
+++ b/src/lazy/SkDiscardablePixelRef.cpp
@@ -71,7 +71,7 @@ bool SkDiscardablePixelRef::onNewLockPixels(LockRec* rec) {
SkPMColor colors[256];
int colorCount = 0;
- const SkImageGenerator::Result result = fGenerator->getPixels(info, pixels, fRowBytes,
+ const SkImageGenerator::Result result = fGenerator->getPixels(info, pixels, fRowBytes, NULL,
colors, &colorCount);
switch (result) {
case SkImageGenerator::kSuccess: