Index: src/lazy/SkCachingPixelRef.cpp |
diff --git a/src/lazy/SkCachingPixelRef.cpp b/src/lazy/SkCachingPixelRef.cpp |
index f1510fb67c3e23095336649a6dac2faeb18cf967..f5026c7365975c3b8e588ea3af16a49812a3bfe7 100644 |
--- a/src/lazy/SkCachingPixelRef.cpp |
+++ b/src/lazy/SkCachingPixelRef.cpp |
@@ -12,15 +12,13 @@ bool SkCachingPixelRef::Install(SkImageGenerator* generator, |
SkBitmap* dst) { |
SkImageInfo info; |
SkASSERT(dst != NULL); |
- if ((NULL == generator) |
- || !(generator->getInfo(&info)) |
- || !dst->setConfig(info, 0)) { |
+ if (!generator || !generator->getInfo(&info)) { |
SkDELETE(generator); |
return false; |
} |
SkAutoTUnref<SkCachingPixelRef> ref(SkNEW_ARGS(SkCachingPixelRef, |
(info, generator, dst->rowBytes()))); |
- dst->setPixelRef(ref); |
+ dst->installPixelRef(ref); |
return true; |
} |