fix bug in legacy code for SK_SUPPORT_LEGACY_IMAGEGENERATORAPI

git-svn-id: http://skia.googlecode.com/svn/trunk@14967 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/lazy/SkDiscardablePixelRef.cpp b/src/lazy/SkDiscardablePixelRef.cpp
index b0bbd27..53e9d1a 100644
--- a/src/lazy/SkDiscardablePixelRef.cpp
+++ b/src/lazy/SkDiscardablePixelRef.cpp
@@ -64,7 +64,11 @@
     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;