From a907ac3e3e3458fbb5d673c3feafb31fd7647b38 Mon Sep 17 00:00:00 2001 From: "junov@chromium.org" Date: Fri, 24 Feb 2012 21:54:07 +0000 Subject: Modify SkDeferredCanvas so that it uses its inherited SkCanvas to track matrix and clipping state Removed 'virtual' from a few canvas methods that no longer need it thanks to this change. BUG=http://code.google.com/p/skia/issues/detail?id=506 TEST=Canvas unit test REVIEW=http://codereview.appspot.com/5697052/ git-svn-id: http://skia.googlecode.com/svn/trunk@3261 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/utils/SkDeferredCanvas.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/utils') diff --git a/include/utils/SkDeferredCanvas.h b/include/utils/SkDeferredCanvas.h index e06ea81cbc..87797ac4ca 100644 --- a/include/utils/SkDeferredCanvas.h +++ b/include/utils/SkDeferredCanvas.h @@ -80,14 +80,13 @@ public: virtual int saveLayer(const SkRect* bounds, const SkPaint* paint, SaveFlags flags) SK_OVERRIDE; virtual void restore() SK_OVERRIDE; - virtual int getSaveCount() const SK_OVERRIDE; + virtual bool isDrawingToLayer() const SK_OVERRIDE; virtual bool translate(SkScalar dx, SkScalar dy) SK_OVERRIDE; virtual bool scale(SkScalar sx, SkScalar sy) SK_OVERRIDE; virtual bool rotate(SkScalar degrees) SK_OVERRIDE; virtual bool skew(SkScalar sx, SkScalar sy) SK_OVERRIDE; virtual bool concat(const SkMatrix& matrix) SK_OVERRIDE; virtual void setMatrix(const SkMatrix& matrix) SK_OVERRIDE; - virtual const SkMatrix& getTotalMatrix() const SK_OVERRIDE; virtual bool clipRect(const SkRect& rect, SkRegion::Op op, bool doAntiAlias) SK_OVERRIDE; virtual bool clipPath(const SkPath& path, SkRegion::Op op, -- cgit v1.2.3