Lines Matching refs:bitmap
169 void SkOrderedReadBuffer::readBitmap(SkBitmap* bitmap) {
172 // Bitmap was encoded.
174 if (fBitmapDecoder != NULL && fBitmapDecoder(&stream, bitmap)) {
178 // This bitmap was encoded when written, but we are unable to decode, possibly due to
179 // not having a decoder. Use a placeholder bitmap.
180 SkDebugf("Could not decode bitmap. Resulting bitmap will be red.\n");
183 bitmap->setConfig(SkBitmap::kARGB_8888_Config, width, height);
184 bitmap->allocPixels();
185 bitmap->eraseColor(SK_ColorRED);
190 fReader.readU32(); // bitmap generation ID (see SkOrderedWriteBuffer::writeBitmap)
191 *bitmap = *fBitmapStorage->getBitmap(index);
194 bitmap->unflatten(*this);