aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/utils
diff options
context:
space:
mode:
authorGravatar piotaixr <piotaixr@chromium.org>2014-10-22 11:02:32 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-22 11:02:32 -0700
commit9bb7539a59ab15749fe26fecfec05330cffae684 (patch)
treefb0f4d5be8136ca9a8bd077131a2d628ff214079 /include/utils
parentc369e7c9992a86151a3ea0516ce5308c211b196b (diff)
Override SkCanvas::drawImage() in SkDeferredCanvas and SkGPipe
Diffstat (limited to 'include/utils')
-rw-r--r--include/utils/SkDeferredCanvas.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/utils/SkDeferredCanvas.h b/include/utils/SkDeferredCanvas.h
index 5f781f8859..a1ac295185 100644
--- a/include/utils/SkDeferredCanvas.h
+++ b/include/utils/SkDeferredCanvas.h
@@ -164,8 +164,12 @@ public:
virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
const SkPaint* paint) SK_OVERRIDE;
virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center,
- const SkRect& dst, const SkPaint* paint)
- SK_OVERRIDE;
+ const SkRect& dst, const SkPaint* paint) SK_OVERRIDE;
+ virtual void drawImage(const SkImage* image, SkScalar left, SkScalar top,
+ const SkPaint* paint) SK_OVERRIDE;
+ virtual void drawImageRect(const SkImage* image, const SkRect* src,
+ const SkRect& dst,
+ const SkPaint* paint) SK_OVERRIDE;
virtual void drawSprite(const SkBitmap& bitmap, int left, int top,
const SkPaint* paint) SK_OVERRIDE;
virtual void drawVertices(VertexMode vmode, int vertexCount,
@@ -197,7 +201,7 @@ protected:
virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
const SkPoint texCoords[4], SkXfermode* xmode,
const SkPaint& paint) SK_OVERRIDE;
-
+
virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE;
virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE;
virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE;