Extract pixels from the correct Bitmap

Fixes OOMs due to extracting the pixels from a
large bitmap

BUG: 23683553
Change-Id: I9ce9e58f786f4072ff1a1568253b44876ed6c3c7
diff --git a/v7/palette/src/main/java/android/support/v7/graphics/Palette.java b/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
index a476559..eec60e2 100644
--- a/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
+++ b/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
@@ -604,7 +604,7 @@
 
                 // Now generate a quantizer from the Bitmap
                 final ColorCutQuantizer quantizer = new ColorCutQuantizer(
-                        getPixelsFromBitmap(),
+                        getPixelsFromBitmap(bitmap),
                         mMaxColors,
                         mFilters.isEmpty() ? null : mFilters.toArray(new Filter[mFilters.size()]));
 
@@ -669,8 +669,7 @@
                     }, mBitmap);
         }
 
-        private int[] getPixelsFromBitmap() {
-            final Bitmap bitmap = mBitmap;
+        private int[] getPixelsFromBitmap(Bitmap bitmap) {
             final int bitmapWidth = bitmap.getWidth();
             final int bitmapHeight = bitmap.getHeight();
             final int[] pixels = new int[bitmapWidth * bitmapHeight];