From 8f9ecbd3466d4330886b4c23b06e75b468c795ad Mon Sep 17 00:00:00 2001 From: "junov@chromium.org" Date: Mon, 13 Feb 2012 21:53:45 +0000 Subject: Adding API and unit testing for deferred canvas clearing/purging REVIEW=http://codereview.appspot.com/5646057/ TEST=DeferredCanvas unit test git-svn-id: http://skia.googlecode.com/svn/trunk@3181 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkPictureRecord.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/SkPictureRecord.h') diff --git a/src/core/SkPictureRecord.h b/src/core/SkPictureRecord.h index ff6585d375..e8fa370f9d 100644 --- a/src/core/SkPictureRecord.h +++ b/src/core/SkPictureRecord.h @@ -65,6 +65,7 @@ public: const uint16_t indices[], int indexCount, const SkPaint&) SK_OVERRIDE; virtual void drawData(const void*, size_t) SK_OVERRIDE; + virtual bool isDrawingToLayer() const SK_OVERRIDE; void addFontMetricsTopBottom(const SkPaint& paint, SkScalar minY, SkScalar maxY); @@ -92,6 +93,10 @@ public: private: SkTDArray fRestoreOffsetStack; + int fFirstSavedLayerIndex; + enum { + kNoSavedLayerIndex = -1 + }; void addDraw(DrawType drawType) { #ifdef SK_DEBUG_TRACE -- cgit v1.2.3