OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkPictureRecord_DEFINED | 8 #ifndef SkPictureRecord_DEFINED |
9 #define SkPictureRecord_DEFINED | 9 #define SkPictureRecord_DEFINED |
10 | 10 |
11 #include "SkCanvas.h" | 11 #include "SkCanvas.h" |
12 #include "SkFlattenable.h" | 12 #include "SkFlattenable.h" |
13 #ifdef SK_COLLAPSE_MATRIX_CLIP_STATE | 13 #ifdef SK_COLLAPSE_MATRIX_CLIP_STATE |
14 #include "SkMatrixClipStateMgr.h" | 14 #include "SkMatrixClipStateMgr.h" |
15 #endif | 15 #endif |
16 #include "SkPathHeap.h" | 16 #include "SkPathHeap.h" |
17 #include "SkPicture.h" | 17 #include "SkPicture.h" |
18 #include "SkPicturePlayback.h" | 18 #include "SkPictureData.h" |
19 #include "SkPictureFlat.h" | 19 #include "SkPictureFlat.h" |
20 #include "SkTemplates.h" | 20 #include "SkTemplates.h" |
21 #include "SkWriter32.h" | 21 #include "SkWriter32.h" |
22 | 22 |
23 class SkBBoxHierarchy; | 23 class SkBBoxHierarchy; |
24 class SkPictureStateTree; | 24 class SkPictureStateTree; |
25 | 25 |
26 // These macros help with packing and unpacking a single byte value and | 26 // These macros help with packing and unpacking a single byte value and |
27 // a 3 byte value into/out of a uint32_t | 27 // a 3 byte value into/out of a uint32_t |
28 #define MASK_24 0x00FFFFFF | 28 #define MASK_24 0x00FFFFFF |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 | 318 |
319 SkWriter32 fWriter; | 319 SkWriter32 fWriter; |
320 | 320 |
321 // we ref each item in these arrays | 321 // we ref each item in these arrays |
322 SkTDArray<const SkPicture*> fPictureRefs; | 322 SkTDArray<const SkPicture*> fPictureRefs; |
323 | 323 |
324 uint32_t fRecordFlags; | 324 uint32_t fRecordFlags; |
325 bool fOptsEnabled; | 325 bool fOptsEnabled; |
326 int fInitialSaveCount; | 326 int fInitialSaveCount; |
327 | 327 |
328 friend class SkPicturePlayback; | 328 friend class SkPictureData; |
329 friend class SkPictureTester; // for unit testing | 329 friend class SkPictureTester; // for unit testing |
330 | 330 |
331 #ifdef SK_COLLAPSE_MATRIX_CLIP_STATE | 331 #ifdef SK_COLLAPSE_MATRIX_CLIP_STATE |
332 SkMatrixClipStateMgr fMCMgr; | 332 SkMatrixClipStateMgr fMCMgr; |
333 #endif | 333 #endif |
334 | 334 |
335 typedef SkCanvas INHERITED; | 335 typedef SkCanvas INHERITED; |
336 }; | 336 }; |
337 | 337 |
338 #endif | 338 #endif |
OLD | NEW |