1 #include "SkBitmapRegionDecoder.h" 2 decodeRegion(SkBitmap * bitmap,SkIRect rect,SkBitmap::Config pref,int sampleSize)3bool SkBitmapRegionDecoder::decodeRegion(SkBitmap* bitmap, SkIRect rect, 4 SkBitmap::Config pref, int sampleSize) { 5 fDecoder->setSampleSize(sampleSize); 6 return fDecoder->decodeRegion(bitmap, rect, pref); 7 } 8