diff options
author | 2009-06-26 20:22:26 +0000 | |
---|---|---|
committer | 2009-06-26 20:22:26 +0000 | |
commit | 09b84a00f79979142fbcfd691ccaeb5e5600922d (patch) | |
tree | 216574508368bdb12ff070d608709aabff856c68 /src/core/SkPicturePlayback.h | |
parent | 0baf19375466cfc24c96532df406e7c5b1d1aae8 (diff) |
add shape recording to pictuures (sans serialization)
git-svn-id: http://skia.googlecode.com/svn/trunk@240 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPicturePlayback.h')
-rw-r--r-- | src/core/SkPicturePlayback.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/core/SkPicturePlayback.h b/src/core/SkPicturePlayback.h index b4e69cac46..ae9641a189 100644 --- a/src/core/SkPicturePlayback.h +++ b/src/core/SkPicturePlayback.h @@ -11,6 +11,7 @@ #include "SkPathHeap.h" #include "SkRegion.h" #include "SkPictureFlat.h" +#include "SkShape.h" class SkPictureRecord; class SkStream; @@ -72,7 +73,13 @@ private: SkASSERT(index > 0 && index <= fPictureCount); return *fPictureRefs[index - 1]; } - + + SkShape* getShape() { + int index = getInt(); + SkASSERT(index > 0 && index <= fShapeCount); + return fShapes[index - 1]; + } + const SkPaint* getPaint() { int index = getInt(); if (index == 0) { @@ -159,7 +166,9 @@ private: SkPicture** fPictureRefs; int fPictureCount; - + SkShape** fShapes; + int fShapeCount; + SkRefCntPlayback fRCPlayback; SkTypefacePlayback fTFPlayback; SkFactoryPlayback* fFactoryPlayback; |