Lines Matching refs:decodeBitmap
226 SkBitmap decodeBitmap; in decodeGainmap() local
229 if (!decodeBitmap.setInfo(bitmapInfo)) { in decodeGainmap()
235 if (!decodeBitmap.tryAllocPixels(nullptr)) { in decodeGainmap()
240 nativeBitmap = android::Bitmap::allocateHeapBitmap(&decodeBitmap); in decodeGainmap()
251 SkCodec::Result result = codec->getAndroidPixels(decodeInfo, decodeBitmap.getPixels(), in decodeGainmap()
252 decodeBitmap.rowBytes(), &codecOptions); in decodeGainmap()
264 const float scaleX = scaledWidth / float(decodeBitmap.width()); in decodeGainmap()
265 const float scaleY = scaledHeight / float(decodeBitmap.height()); in decodeGainmap()
267 SkColorType scaledColorType = decodeBitmap.colorType(); in decodeGainmap()
285 decodeBitmap.setImmutable(); // so .asImage() doesn't make a copy in decodeGainmap()
286 canvas.drawImage(decodeBitmap.asImage(), 0.0f, 0.0f, in decodeGainmap()