Lines Matching defs:decodedBitmap

300 bool SkPNGImageDecoder::onDecode(SkStream* sk_stream, SkBitmap* decodedBitmap,
332 decodedBitmap->setInfo(SkImageInfo::Make(sampler.scaledWidth(), sampler.scaledHeight(),
353 if (!this->allocPixelRef(decodedBitmap,
358 SkAutoLockPixels alp(*decodedBitmap);
385 uint8_t* bmRow = decodedBitmap->getAddr8(0, y);
408 even if our decodedBitmap doesn't, due to the request that we
412 if (!sampler.begin(decodedBitmap, sc, *this, ctLock.colors())) {
415 const int height = decodedBitmap->height();
462 reallyHasAlpha |= substituteTranspColor(decodedBitmap, theTranspColor);
465 switch (decodedBitmap->colorType()) {
481 decodedBitmap->setAlphaType(kOpaque_SkAlphaType);
795 SkBitmap decodedBitmap;
796 decodedBitmap.setInfo(SkImageInfo::Make(sampler.scaledWidth(), sampler.scaledHeight(),
818 const bool swapOnly = (rect == region) && (w == decodedBitmap.width()) &&
819 (h == decodedBitmap.height()) && bm->isNull();
822 if (!this->allocPixelRef(&decodedBitmap, needColorTable ? colorTable : NULL)) {
826 if (!decodedBitmap.tryAllocPixels(NULL, needColorTable ? colorTable : NULL)) {
830 SkAutoLockPixels alp(decodedBitmap);
869 uint8_t* bmRow = decodedBitmap.getAddr8(0, 0);
872 png_uint_32 bitmapHeight = (png_uint_32) decodedBitmap.height();
874 uint8_t* bmRow = decodedBitmap.getAddr8(0, y);
897 even if our decodedBitmap doesn't, due to the request that we
901 if (!sampler.begin(&decodedBitmap, sc, *this, ctLock.colors())) {
904 const int height = decodedBitmap.height();
951 reallyHasAlpha |= substituteTranspColor(&decodedBitmap, theTranspColor);
954 switch (decodedBitmap.colorType()) {
976 decodedBitmap.setAlphaType(alphaType);
979 bm->swap(decodedBitmap);
982 return this->cropBitmap(bm, &decodedBitmap, sampleSize, region.x(), region.y(),