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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 void dump() const; | 219 void dump() const; |
220 #endif | 220 #endif |
221 | 221 |
222 private: // these help us with reading/writing | 222 private: // these help us with reading/writing |
223 bool parseStreamTag(SkPicture* picture, SkStream*, uint32_t tag, uint32_t si
ze, | 223 bool parseStreamTag(SkPicture* picture, SkStream*, uint32_t tag, uint32_t si
ze, |
224 SkPicture::InstallPixelRefProc); | 224 SkPicture::InstallPixelRefProc); |
225 bool parseBufferTag(SkPicture* picture, SkReadBuffer&, uint32_t tag, uint32_
t size); | 225 bool parseBufferTag(SkPicture* picture, SkReadBuffer&, uint32_t tag, uint32_
t size); |
226 void flattenToBuffer(SkWriteBuffer&) const; | 226 void flattenToBuffer(SkWriteBuffer&) const; |
227 | 227 |
228 private: | 228 private: |
| 229 friend class SkPicture; |
| 230 |
229 // The picture that owns this SkPicturePlayback object | 231 // The picture that owns this SkPicturePlayback object |
230 const SkPicture* fPicture; | 232 const SkPicture* fPicture; |
231 | 233 |
232 // Only used by getBitmap() if the passed in index is SkBitmapHeap::INVALID_
SLOT. This empty | 234 // Only used by getBitmap() if the passed in index is SkBitmapHeap::INVALID_
SLOT. This empty |
233 // bitmap allows playback to draw nothing and move on. | 235 // bitmap allows playback to draw nothing and move on. |
234 SkBitmap fBadBitmap; | 236 SkBitmap fBadBitmap; |
235 | 237 |
236 SkAutoTUnref<SkBitmapHeap> fBitmapHeap; | 238 SkAutoTUnref<SkBitmapHeap> fBitmapHeap; |
237 | 239 |
238 SkTRefArray<SkBitmap>* fBitmaps; | 240 SkTRefArray<SkBitmap>* fBitmaps; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec); | 282 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec); |
281 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec); | 283 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec); |
282 | 284 |
283 #ifdef SK_BUILD_FOR_ANDROID | 285 #ifdef SK_BUILD_FOR_ANDROID |
284 SkMutex fDrawMutex; | 286 SkMutex fDrawMutex; |
285 bool fAbortCurrentPlayback; | 287 bool fAbortCurrentPlayback; |
286 #endif | 288 #endif |
287 }; | 289 }; |
288 | 290 |
289 #endif | 291 #endif |
OLD | NEW |