Index: src/core/SkMallocPixelRef.cpp |
diff --git a/src/core/SkMallocPixelRef.cpp b/src/core/SkMallocPixelRef.cpp |
index 075b5f6f2d7c71606bdf4cfadd8d896c30742807..50357e469bc34571efd012494f5e1c612be30271 100644 |
--- a/src/core/SkMallocPixelRef.cpp |
+++ b/src/core/SkMallocPixelRef.cpp |
@@ -186,9 +186,11 @@ SkMallocPixelRef::~SkMallocPixelRef() { |
} |
} |
-void* SkMallocPixelRef::onLockPixels(SkColorTable** ctable) { |
- *ctable = fCTable; |
- return fStorage; |
+bool SkMallocPixelRef::onNewLockPixels(LockRec* rec) { |
+ rec->fPixels = fStorage; |
+ rec->fRowBytes = fRB; |
+ rec->fColorTable = fCTable; |
+ return true; |
} |
void SkMallocPixelRef::onUnlockPixels() { |