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 13 matching lines...) Expand all Loading... |
24 | 24 |
25 #ifdef SK_BUILD_FOR_ANDROID | 25 #ifdef SK_BUILD_FOR_ANDROID |
26 #include "SkThread.h" | 26 #include "SkThread.h" |
27 #endif | 27 #endif |
28 | 28 |
29 class SkPictureRecord; | 29 class SkPictureRecord; |
30 class SkStream; | 30 class SkStream; |
31 class SkWStream; | 31 class SkWStream; |
32 class SkBBoxHierarchy; | 32 class SkBBoxHierarchy; |
33 class SkPictureStateTree; | 33 class SkPictureStateTree; |
34 class SkOffsetTable; | |
35 | 34 |
36 struct SkPictInfo { | 35 struct SkPictInfo { |
37 enum Flags { | 36 enum Flags { |
38 kCrossProcess_Flag = 1 << 0, | 37 kCrossProcess_Flag = 1 << 0, |
39 kScalarIsFloat_Flag = 1 << 1, | 38 kScalarIsFloat_Flag = 1 << 1, |
40 kPtrIs64Bit_Flag = 1 << 2, | 39 kPtrIs64Bit_Flag = 1 << 2, |
41 }; | 40 }; |
42 | 41 |
43 char fMagic[8]; | 42 char fMagic[8]; |
44 uint32_t fVersion; | 43 uint32_t fVersion; |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 // bitmap allows playback to draw nothing and move on. | 224 // bitmap allows playback to draw nothing and move on. |
226 SkBitmap fBadBitmap; | 225 SkBitmap fBadBitmap; |
227 | 226 |
228 SkAutoTUnref<SkBitmapHeap> fBitmapHeap; | 227 SkAutoTUnref<SkBitmapHeap> fBitmapHeap; |
229 SkAutoTUnref<SkPathHeap> fPathHeap; | 228 SkAutoTUnref<SkPathHeap> fPathHeap; |
230 | 229 |
231 SkTRefArray<SkBitmap>* fBitmaps; | 230 SkTRefArray<SkBitmap>* fBitmaps; |
232 SkTRefArray<SkPaint>* fPaints; | 231 SkTRefArray<SkPaint>* fPaints; |
233 | 232 |
234 SkData* fOpData; // opcodes and parameters | 233 SkData* fOpData; // opcodes and parameters |
235 SkAutoTUnref<SkOffsetTable> fBitmapUseOffsets; | |
236 | 234 |
237 SkPicture** fPictureRefs; | 235 SkPicture** fPictureRefs; |
238 int fPictureCount; | 236 int fPictureCount; |
239 | 237 |
240 SkBBoxHierarchy* fBoundingHierarchy; | 238 SkBBoxHierarchy* fBoundingHierarchy; |
241 SkPictureStateTree* fStateTree; | 239 SkPictureStateTree* fStateTree; |
242 | 240 |
243 class CachedOperationList : public SkPicture::OperationList { | 241 class CachedOperationList : public SkPicture::OperationList { |
244 public: | 242 public: |
245 CachedOperationList() { | 243 CachedOperationList() { |
(...skipping 25 matching lines...) Expand all Loading... |
271 | 269 |
272 const SkPictInfo fInfo; | 270 const SkPictInfo fInfo; |
273 | 271 |
274 #ifdef SK_BUILD_FOR_ANDROID | 272 #ifdef SK_BUILD_FOR_ANDROID |
275 SkMutex fDrawMutex; | 273 SkMutex fDrawMutex; |
276 bool fAbortCurrentPlayback; | 274 bool fAbortCurrentPlayback; |
277 #endif | 275 #endif |
278 }; | 276 }; |
279 | 277 |
280 #endif | 278 #endif |
OLD | NEW |