Lines Matching refs:bm
133 static void copyInterlaceGroup(SkBitmap* bm, const unsigned char*& src, in copyInterlaceGroup() argument
141 uint32_t* dst = bm->getAddr32(imageDesc.Left, imageDesc.Top + row); in copyInterlaceGroup()
150 static void blitInterlace(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitInterlace() argument
153 int width = bm->width(); in blitInterlace()
154 int height = bm->height(); in blitInterlace()
169 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 0); in blitInterlace()
172 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 4); in blitInterlace()
175 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 4, 2); in blitInterlace()
177 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 2, 1); in blitInterlace()
181 static void blitNormal(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitNormal() argument
184 int width = bm->width(); in blitNormal()
185 int height = bm->height(); in blitNormal()
187 uint32_t* dst = bm->getAddr32(frame->ImageDesc.Left, frame->ImageDesc.Top); in blitNormal()
205 static void fillRect(SkBitmap* bm, GifWord left, GifWord top, GifWord width, GifWord height, in fillRect() argument
208 int bmWidth = bm->width(); in fillRect()
209 int bmHeight = bm->height(); in fillRect()
210 uint32_t* dst = bm->getAddr32(left, top); in fillRect()
227 static void drawFrame(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap) in drawFrame() argument
255 blitInterlace(bm, frame, cmap, transparent); in drawFrame()
260 blitNormal(bm, frame, cmap, transparent); in drawFrame()
307 static void disposeFrameIfNeeded(SkBitmap* bm, const SavedImage* cur, const SavedImage* next, in disposeFrameIfNeeded() argument
324 fillRect(bm, cur->ImageDesc.Left, cur->ImageDesc.Top, in disposeFrameIfNeeded()
331 bm->swap(*backup); in disposeFrameIfNeeded()
338 const uint32_t* src = bm->getAddr32(0, 0); in disposeFrameIfNeeded()
340 int cnt = bm->width() * bm->height(); in disposeFrameIfNeeded()
345 bool SkGIFMovie::onGetBitmap(SkBitmap* bm) in onGetBitmap() argument
367 if (fLastDrawIndex < 0 || !bm->readyToDraw()) { in onGetBitmap()
373 if (!bm->tryAllocN32Pixels(width, height)) { in onGetBitmap()
413 bm->eraseColor(fPaintingColor); in onGetBitmap()
418 disposeFrameIfNeeded(bm, prev, cur, &fBackup, fPaintingColor); in onGetBitmap()
425 drawFrame(bm, cur, gif->SColorMap); in onGetBitmap()