Index: src/core/SkBitmap.cpp |
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
index a89ca35f0d3f070b07f8dd195a6efb2804861e11..0bfcb6fbed6249ee0ed5755a64d15795135d3d35 100644 |
--- a/src/core/SkBitmap.cpp |
+++ b/src/core/SkBitmap.cpp |
@@ -442,16 +442,14 @@ bool SkBitmap::allocPixels(const SkImageInfo& info, SkPixelRefFactory* factory, |
return true; |
} |
-bool SkBitmap::installPixels(const SkImageInfo& info, void* pixels, size_t rb, |
- void (*releaseProc)(void* addr, void* context), |
- void* context) { |
+bool SkBitmap::installPixels(const SkImageInfo& info, void* pixels, size_t rb, SkColorTable* ct, |
+ void (*releaseProc)(void* addr, void* context), void* context) { |
if (!this->setConfig(info, rb)) { |
this->reset(); |
return false; |
} |
- SkPixelRef* pr = SkMallocPixelRef::NewWithProc(info, rb, NULL, pixels, |
- releaseProc, context); |
+ SkPixelRef* pr = SkMallocPixelRef::NewWithProc(info, rb, ct, pixels, releaseProc, context); |
if (!pr) { |
this->reset(); |
return false; |