Index: src/core/SkPictureRecord.h |
diff --git a/src/core/SkPictureRecord.h b/src/core/SkPictureRecord.h |
index 2aeb69dcd499ff1d37aa30783799272a47a3153f..0b6ef8b931a345d977f1cdfe71c52737c283a80c 100644 |
--- a/src/core/SkPictureRecord.h |
+++ b/src/core/SkPictureRecord.h |
@@ -37,6 +37,10 @@ public: |
return fTextBlobRefs; |
} |
+ const SkTDArray<const SkImage* >& getImageRefs() const { |
+ return fImageRefs; |
+ } |
+ |
SkData* opData(bool deepCopy) const { |
this->validate(fWriter.bytesWritten(), 0); |
@@ -118,6 +122,7 @@ private: |
} |
void addBitmap(const SkBitmap& bitmap); |
+ void addImage(const SkImage*); |
void addMatrix(const SkMatrix& matrix); |
void addPaint(const SkPaint& paint) { this->addPaintPtr(&paint); } |
void addPaintPtr(const SkPaint* paint); |
@@ -223,6 +228,7 @@ private: |
SkWriter32 fWriter; |
// we ref each item in these arrays |
+ SkTDArray<const SkImage*> fImageRefs; |
SkTDArray<const SkPicture*> fPictureRefs; |
SkTDArray<const SkTextBlob*> fTextBlobRefs; |