Index: src/lazy/SkDiscardablePixelRef.cpp |
diff --git a/src/lazy/SkDiscardablePixelRef.cpp b/src/lazy/SkDiscardablePixelRef.cpp |
index 56b94b734e310d12e9febd22d15177453cc42801..267e0972455746f369943008bed5b679195c11df 100644 |
--- a/src/lazy/SkDiscardablePixelRef.cpp |
+++ b/src/lazy/SkDiscardablePixelRef.cpp |
@@ -77,8 +77,7 @@ void SkDiscardablePixelRef::onUnlockPixels() { |
fDiscardableMemory->unlock(); |
} |
-bool SkInstallDiscardablePixelRef(SkImageGenerator* generator, |
- SkBitmap* dst, |
+bool SkInstallDiscardablePixelRef(SkImageGenerator* generator, SkBitmap* dst, |
SkDiscardableMemory::Factory* factory) { |
SkImageInfo info; |
SkAutoTDelete<SkImageGenerator> autoGenerator(generator); |
@@ -97,3 +96,9 @@ bool SkInstallDiscardablePixelRef(SkImageGenerator* generator, |
dst->setPixelRef(ref); |
return true; |
} |
+ |
+// This is the public API |
+bool SkInstallDiscardablePixelRef(SkImageGenerator* generator, SkBitmap* dst) { |
+ return SkInstallDiscardablePixelRef(generator, dst, NULL); |
+} |
+ |