| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 #ifndef SkPicturePlayback_DEFINED | 8 #ifndef SkPicturePlayback_DEFINED |
| 9 #define SkPicturePlayback_DEFINED | 9 #define SkPicturePlayback_DEFINED |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 bool initialized; | 55 bool initialized; |
| 56 SkChunkFlatController controller; | 56 SkChunkFlatController controller; |
| 57 SkTDArray<SkFlatData*> paintData; | 57 SkTDArray<SkFlatData*> paintData; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 class SkPicturePlayback { | 60 class SkPicturePlayback { |
| 61 public: | 61 public: |
| 62 SkPicturePlayback(); | 62 SkPicturePlayback(); |
| 63 SkPicturePlayback(const SkPicturePlayback& src, SkPictCopyInfo* deepCopyInfo
= NULL); | 63 SkPicturePlayback(const SkPicturePlayback& src, SkPictCopyInfo* deepCopyInfo
= NULL); |
| 64 explicit SkPicturePlayback(const SkPictureRecord& record, bool deepCopy = fa
lse); | 64 explicit SkPicturePlayback(SkPictureRecord& record, bool deepCopy = false); |
| 65 static SkPicturePlayback* CreateFromStream(SkStream*, const SkPictInfo&, | 65 static SkPicturePlayback* CreateFromStream(SkStream*, const SkPictInfo&, |
| 66 SkPicture::InstallPixelRefProc); | 66 SkPicture::InstallPixelRefProc); |
| 67 | 67 |
| 68 virtual ~SkPicturePlayback(); | 68 virtual ~SkPicturePlayback(); |
| 69 | 69 |
| 70 void draw(SkCanvas& canvas, SkDrawPictureCallback*); | 70 void draw(SkCanvas& canvas, SkDrawPictureCallback*); |
| 71 | 71 |
| 72 void serialize(SkWStream*, SkPicture::EncodeBitmap) const; | 72 void serialize(SkWStream*, SkPicture::EncodeBitmap) const; |
| 73 | 73 |
| 74 void dumpSize() const; | 74 void dumpSize() const; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 216 |
| 217 SkTypefacePlayback fTFPlayback; | 217 SkTypefacePlayback fTFPlayback; |
| 218 SkFactoryPlayback* fFactoryPlayback; | 218 SkFactoryPlayback* fFactoryPlayback; |
| 219 #ifdef SK_BUILD_FOR_ANDROID | 219 #ifdef SK_BUILD_FOR_ANDROID |
| 220 SkMutex fDrawMutex; | 220 SkMutex fDrawMutex; |
| 221 bool fAbortCurrentPlayback; | 221 bool fAbortCurrentPlayback; |
| 222 #endif | 222 #endif |
| 223 }; | 223 }; |
| 224 | 224 |
| 225 #endif | 225 #endif |
| OLD | NEW |