Index: src/utils/SkDeferredCanvas.cpp |
diff --git a/src/utils/SkDeferredCanvas.cpp b/src/utils/SkDeferredCanvas.cpp |
index c20aa62b0099bca8514d045b9f4c2075b912198f..06f7bb089ab07ebebfd9ad7a99c9f8af0a5e11d9 100644 |
--- a/src/utils/SkDeferredCanvas.cpp |
+++ b/src/utils/SkDeferredCanvas.cpp |
@@ -866,43 +866,6 @@ |
this->recordedDrawCommand(); |
} |
-void SkDeferredCanvas::drawImage(const SkImage* image, SkScalar left, SkScalar top, |
- const SkPaint* paint) { |
- SkRect imageRect = SkRect::MakeXYWH(left, top, |
- SkIntToScalar(image->width()), SkIntToScalar(image->height())); |
- bool isImageOpaque = image->isOpaque(); |
- SkPaintBitmapOpacity pct = isImageOpaque |
- ? kOpaque_SkPaintBitmapOpacity : kUnknown_SkPaintBitmapOpacity; |
- |
- if (fDeferredDrawing && |
- this->isFullFrame(&imageRect, paint) && |
- (isImageOpaque ||isPaintOpaque(paint, pct))) { |
- this->getDeferredDevice()->skipPendingCommands(); |
- } |
- |
- AutoImmediateDrawIfNeeded autoDraw(*this, paint); |
- this->drawingCanvas()->drawImage(image, left, top, paint); |
- this->recordedDrawCommand(); |
-} |
- |
-void SkDeferredCanvas::drawImageRect(const SkImage* image, const SkRect* src, |
- const SkRect& dst, |
- const SkPaint* paint) { |
- bool isImageOpaque = image->isOpaque(); |
- SkPaintBitmapOpacity pct = isImageOpaque |
- ? kOpaque_SkPaintBitmapOpacity : kUnknown_SkPaintBitmapOpacity; |
- |
- if (fDeferredDrawing && |
- this->isFullFrame(&dst, paint) && |
- (isImageOpaque || isPaintOpaque(paint, pct))) { |
- this->getDeferredDevice()->skipPendingCommands(); |
- } |
- |
- AutoImmediateDrawIfNeeded autoDraw(*this, paint); |
- this->drawingCanvas()->drawImageRect(image, src, dst, paint); |
- this->recordedDrawCommand(); |
-} |
- |
void SkDeferredCanvas::drawSprite(const SkBitmap& bitmap, int left, int top, |
const SkPaint* paint) { |
SkRect bitmapRect = SkRect::MakeXYWH( |