add shape recording to pictuures (sans serialization)
git-svn-id: http://skia.googlecode.com/svn/trunk@240 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/core/SkPictureRecord.h b/src/core/SkPictureRecord.h
index 5325e1e..05761af 100644
--- a/src/core/SkPictureRecord.h
+++ b/src/core/SkPictureRecord.h
@@ -50,6 +50,7 @@
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 @@
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 @@
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;