aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/lazy
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2014-07-28 08:23:55 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-07-28 08:23:55 -0700
commit7f8aad84de1661727b467940a4f0e6f6531fc0a1 (patch)
treef0ebd95b2180c3692dd8ca7eb9058efdd72d2872 /src/lazy
parentedb10e79f5cd1b48baa77f82705d4e711fb35ba4 (diff)
SkDiscardablePixelRef returns correct indexed color on relock.
R=djsollen@google.com Author: halcanary@google.com Review URL: https://codereview.chromium.org/428603002
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 f0d7affdc8..ce38a4a877 100644
--- a/src/lazy/SkDiscardablePixelRef.cpp
+++ b/src/lazy/SkDiscardablePixelRef.cpp
@@ -40,7 +40,7 @@ bool SkDiscardablePixelRef::onNewLockPixels(LockRec* rec) {
if (fDiscardableMemory != NULL) {
if (fDiscardableMemory->lock()) {
rec->fPixels = fDiscardableMemory->data();
- rec->fColorTable = NULL;
+ rec->fColorTable = fCTable.get();
rec->fRowBytes = fRowBytes;
return true;
}