aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPictureRecord.h
diff options
context:
space:
mode:
authorGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-06-26 20:22:26 +0000
committerGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-06-26 20:22:26 +0000
commit09b84a00f79979142fbcfd691ccaeb5e5600922d (patch)
tree216574508368bdb12ff070d608709aabff856c68 /src/core/SkPictureRecord.h
parent0baf19375466cfc24c96532df406e7c5b1d1aae8 (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/SkPictureRecord.h')
-rw-r--r--src/core/SkPictureRecord.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/SkPictureRecord.h b/src/core/SkPictureRecord.h
index 5325e1e386..05761afd0b 100644
--- a/src/core/SkPictureRecord.h
+++ b/src/core/SkPictureRecord.h
@@ -50,6 +50,7 @@ public:
const SkPath& path, const SkMatrix* matrix,
const SkPaint&);
virtual void drawPicture(SkPicture& picture);
+ virtual void drawShape(SkShape*);
virtual void drawVertices(VertexMode, int vertexCount,
const SkPoint vertices[], const SkPoint texs[],
const SkColor colors[], SkXfermode*,
@@ -70,6 +71,9 @@ public:
const SkTDArray<SkPicture* >& getPictureRefs() const {
return fPictureRefs;
}
+ const SkTDArray<SkShape* >& getShapes() const {
+ return fShapes;
+ }
const SkTDArray<const SkFlatRegion* >& getRegions() const {
return fRegions;
}
@@ -165,8 +169,9 @@ private:
SkPathHeap* fPathHeap; // reference counted
SkWriter32 fWriter;
- // we ref each item in this array
+ // we ref each item in these arrays
SkTDArray<SkPicture*> fPictureRefs;
+ SkTDArray<SkShape*> fShapes;
SkRefCntRecorder fRCRecorder;
SkRefCntRecorder fTFRecorder;