diff options
author | 2012-02-13 21:53:45 +0000 | |
---|---|---|
committer | 2012-02-13 21:53:45 +0000 | |
commit | 8f9ecbd3466d4330886b4c23b06e75b468c795ad (patch) | |
tree | f80694e771c12c45d9c738b879ab3e379f61f148 /src/core/SkPictureRecord.h | |
parent | 813d38b7a07957f2990ccca52ddab55fe0b1c632 (diff) |
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
Diffstat (limited to 'src/core/SkPictureRecord.h')
-rw-r--r-- | src/core/SkPictureRecord.h | 5 |
1 files changed, 5 insertions, 0 deletions
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<uint32_t> fRestoreOffsetStack; + int fFirstSavedLayerIndex; + enum { + kNoSavedLayerIndex = -1 + }; void addDraw(DrawType drawType) { #ifdef SK_DEBUG_TRACE |