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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(const SkPictureRecord& record, bool deepCopy = fa
lse); |
65 SkPicturePlayback(SkStream*, const SkPictInfo&, SkPicture::InstallPixelRefPr
oc); | 65 SkPicturePlayback(SkStream*, const SkPictInfo&, SkPicture::InstallPixelRefPr
oc); |
66 | 66 |
67 virtual ~SkPicturePlayback(); | 67 virtual ~SkPicturePlayback(); |
68 | 68 |
69 void draw(SkCanvas& canvas); | 69 void draw(SkCanvas& canvas, SkDrawPictureCallback*); |
70 | 70 |
71 void serialize(SkWStream*, SkPicture::EncodeBitmap) const; | 71 void serialize(SkWStream*, SkPicture::EncodeBitmap) const; |
72 | 72 |
73 void dumpSize() const; | 73 void dumpSize() const; |
74 | 74 |
75 #ifdef SK_BUILD_FOR_ANDROID | 75 #ifdef SK_BUILD_FOR_ANDROID |
76 // Can be called in the middle of playback (the draw() call). WIll abort the | 76 // Can be called in the middle of playback (the draw() call). WIll abort the |
77 // drawing and return from draw() after the "current" op code is done | 77 // drawing and return from draw() after the "current" op code is done |
78 void abort() { fAbortCurrentPlayback = true; } | 78 void abort() { fAbortCurrentPlayback = true; } |
79 #endif | 79 #endif |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 219 |
220 SkTypefacePlayback fTFPlayback; | 220 SkTypefacePlayback fTFPlayback; |
221 SkFactoryPlayback* fFactoryPlayback; | 221 SkFactoryPlayback* fFactoryPlayback; |
222 #ifdef SK_BUILD_FOR_ANDROID | 222 #ifdef SK_BUILD_FOR_ANDROID |
223 SkMutex fDrawMutex; | 223 SkMutex fDrawMutex; |
224 bool fAbortCurrentPlayback; | 224 bool fAbortCurrentPlayback; |
225 #endif | 225 #endif |
226 }; | 226 }; |
227 | 227 |
228 #endif | 228 #endif |
OLD | NEW |