| Index: src/lazy/SkDiscardablePixelRef.cpp
|
| diff --git a/src/lazy/SkDiscardablePixelRef.cpp b/src/lazy/SkDiscardablePixelRef.cpp
|
| index ec8d5ea9afeb13f6f672c1aef02df2ddf7f0b502..c4e3654d1a73da586b2a9f37113276ef97005876 100644
|
| --- a/src/lazy/SkDiscardablePixelRef.cpp
|
| +++ b/src/lazy/SkDiscardablePixelRef.cpp
|
| @@ -64,11 +64,7 @@ bool SkDiscardablePixelRef::onNewLockPixels(LockRec* rec) {
|
| SkPMColor colors[256];
|
| int colorCount = 0;
|
|
|
| -#ifdef SK_SUPPORT_LEGACY_IMAGEGENERATORAPI
|
| - if (!fGenerator->getPixels(info, pixels, fRowBytes)) {
|
| -#else
|
| if (!fGenerator->getPixels(info, pixels, fRowBytes, colors, &colorCount)) {
|
| -#endif
|
| fDiscardableMemory->unlock();
|
| SkDELETE(fDiscardableMemory);
|
| fDiscardableMemory = NULL;
|
|
|