Home | History | Annotate | Download | only in utils

Lines Matching refs:bitmap

111 void SkDeferredCanvas::flushIfNeeded(const SkBitmap& bitmap) {
114 getDeferredDevice()->flushIfNeeded(bitmap);
316 void SkDeferredCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar left,
319 SkIntToScalar(bitmap.width()), SkIntToScalar(bitmap.height()));
322 isPaintOpaque(paint, &bitmap)) {
326 drawingCanvas()->drawBitmap(bitmap, left, top, paint);
327 flushIfNeeded(bitmap);
330 void SkDeferredCanvas::drawBitmapRect(const SkBitmap& bitmap,
336 isPaintOpaque(paint, &bitmap)) {
340 drawingCanvas()->drawBitmapRect(bitmap, src,
342 flushIfNeeded(bitmap);
346 void SkDeferredCanvas::drawBitmapMatrix(const SkBitmap& bitmap,
349 // TODO: reset recording canvas if paint+bitmap is opaque and clip rect
350 // covers canvas entirely and transformed bitmap covers canvas entirely
351 drawingCanvas()->drawBitmapMatrix(bitmap, m, paint);
352 flushIfNeeded(bitmap);
355 void SkDeferredCanvas::drawBitmapNine(const SkBitmap& bitmap,
358 // TODO: reset recording canvas if paint+bitmap is opaque and clip rect
360 drawingCanvas()->drawBitmapNine(bitmap, center,
362 flushIfNeeded(bitmap);
365 void SkDeferredCanvas::drawSprite(const SkBitmap& bitmap, int left, int top,
370 SkIntToScalar(bitmap.width()),
371 SkIntToScalar(bitmap.height()));
374 isPaintOpaque(paint, &bitmap)) {
378 drawingCanvas()->drawSprite(bitmap, left, top,
380 flushIfNeeded(bitmap);
522 void SkDeferredCanvas::DeferredDevice::flushIfNeeded(const SkBitmap& bitmap) {
523 if (bitmap.isImmutable()) {
527 // For now, drawing a writable bitmap triggers a flush
550 void SkDeferredCanvas::DeferredDevice::writePixels(const SkBitmap& bitmap,
553 if (x <= 0 && y <= 0 && (x + bitmap.width()) >= width() &&
554 (y + bitmap.height()) >= height()) {
558 if (SkBitmap::kARGB_8888_Config == bitmap.config() &&
563 fImmediateDevice->writePixels(bitmap, x, y, config8888);
568 fRecordingCanvas->drawSprite(bitmap, x, y, &paint);
569 flushIfNeeded(bitmap);
591 const SkBitmap& bitmap, int x, int y, SkCanvas::Config8888 config8888) {
593 return fImmediateCanvas->readPixels(const_cast<SkBitmap*>(&bitmap),