• Home
  • Raw
  • Download

Lines Matching refs:bm

134 static void copyInterlaceGroup(SkBitmap* bm, const unsigned char*& src,  in copyInterlaceGroup()  argument
142 uint32_t* dst = bm->getAddr32(imageDesc.Left, imageDesc.Top + row); in copyInterlaceGroup()
151 static void blitInterlace(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitInterlace() argument
154 int width = bm->width(); in blitInterlace()
155 int height = bm->height(); in blitInterlace()
170 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 0); in blitInterlace()
173 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 4); in blitInterlace()
176 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 4, 2); in blitInterlace()
178 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 2, 1); in blitInterlace()
182 static void blitNormal(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitNormal() argument
185 int width = bm->width(); in blitNormal()
186 int height = bm->height(); in blitNormal()
188 uint32_t* dst = bm->getAddr32(frame->ImageDesc.Left, frame->ImageDesc.Top); in blitNormal()
206 static void fillRect(SkBitmap* bm, GifWord left, GifWord top, GifWord width, GifWord height, in fillRect() argument
209 int bmWidth = bm->width(); in fillRect()
210 int bmHeight = bm->height(); in fillRect()
211 uint32_t* dst = bm->getAddr32(left, top); in fillRect()
222 size_t bytes = copyWidth * SkColorTypeBytesPerPixel(bm->colorType()); in fillRect()
229 static void drawFrame(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap) in drawFrame() argument
257 blitInterlace(bm, frame, cmap, transparent); in drawFrame()
262 blitNormal(bm, frame, cmap, transparent); in drawFrame()
309 static void disposeFrameIfNeeded(SkBitmap* bm, const SavedImage* cur, const SavedImage* next, in disposeFrameIfNeeded() argument
326 fillRect(bm, cur->ImageDesc.Left, cur->ImageDesc.Top, in disposeFrameIfNeeded()
333 bm->swap(*backup); in disposeFrameIfNeeded()
340 const uint32_t* src = bm->getAddr32(0, 0); in disposeFrameIfNeeded()
342 int cnt = bm->width() * bm->height(); in disposeFrameIfNeeded()
347 bool GIFMovie::onGetBitmap(SkBitmap* bm) in onGetBitmap() argument
369 if (fLastDrawIndex < 0 || !bm->readyToDraw()) { in onGetBitmap()
375 if (!bm->tryAllocN32Pixels(width, height)) { in onGetBitmap()
415 bm->eraseColor(fPaintingColor); in onGetBitmap()
420 disposeFrameIfNeeded(bm, prev, cur, &fBackup, fPaintingColor); in onGetBitmap()
427 drawFrame(bm, cur, gif->SColorMap); in onGetBitmap()