Index: src/core/SkPicturePlayback.h |
=================================================================== |
--- src/core/SkPicturePlayback.h (revision 14079) |
+++ src/core/SkPicturePlayback.h (working copy) |
@@ -87,8 +87,40 @@ |
const SkPicture::OperationList& getActiveOps(const SkIRect& queryRect); |
- void draw(SkCanvas& canvas, SkDrawPictureCallback*); |
+ struct Foo { |
+ public: |
+ size_t fStart; |
+ size_t fStop; |
+ SkIPoint fPos; |
+ SkBitmap* fBM; |
+ const SkPaint* fPaint; |
+ }; |
+ class Bar { |
+ public: |
+ ~Bar() { |
+ this->freeAll(); |
+ } |
+ |
+ Foo* lookupStart(size_t start); |
+ Foo* lookupStop(size_t stop); |
+ Foo* push() { |
+ return fFoo.push(); |
+ } |
+ |
+ void freeAll() { |
+ for (int i = 0; i < fFoo.count(); ++i) { |
+ SkDELETE(fFoo[i].fBM); |
+ fFoo[i].fBM = NULL; |
+ } |
+ } |
+ |
+ private: |
+ SkTDArray<Foo> fFoo; |
+ }; |
+ |
+ void draw(SkCanvas& canvas, int start, int stop, SkDrawPictureCallback*, Bar* bar); |
+ |
void serialize(SkWStream*, SkPicture::EncodeBitmap) const; |
void flatten(SkWriteBuffer&) const; |