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 22 matching lines...) Expand all Loading... |
33 class SkPictureStateTree; | 33 class SkPictureStateTree; |
34 class SkOffsetTable; | 34 class SkOffsetTable; |
35 | 35 |
36 struct SkPictInfo { | 36 struct SkPictInfo { |
37 enum Flags { | 37 enum Flags { |
38 kCrossProcess_Flag = 1 << 0, | 38 kCrossProcess_Flag = 1 << 0, |
39 kScalarIsFloat_Flag = 1 << 1, | 39 kScalarIsFloat_Flag = 1 << 1, |
40 kPtrIs64Bit_Flag = 1 << 2, | 40 kPtrIs64Bit_Flag = 1 << 2, |
41 }; | 41 }; |
42 | 42 |
| 43 char fMagic[8]; |
43 uint32_t fVersion; | 44 uint32_t fVersion; |
44 uint32_t fWidth; | 45 uint32_t fWidth; |
45 uint32_t fHeight; | 46 uint32_t fHeight; |
46 uint32_t fFlags; | 47 uint32_t fFlags; |
47 }; | 48 }; |
48 | 49 |
49 #define SK_PICT_READER_TAG SkSetFourByteTag('r', 'e', 'a', 'd') | 50 #define SK_PICT_READER_TAG SkSetFourByteTag('r', 'e', 'a', 'd') |
50 #define SK_PICT_FACTORY_TAG SkSetFourByteTag('f', 'a', 'c', 't') | 51 #define SK_PICT_FACTORY_TAG SkSetFourByteTag('f', 'a', 'c', 't') |
51 #define SK_PICT_TYPEFACE_TAG SkSetFourByteTag('t', 'p', 'f', 'c') | 52 #define SK_PICT_TYPEFACE_TAG SkSetFourByteTag('t', 'p', 'f', 'c') |
52 #define SK_PICT_PICTURE_TAG SkSetFourByteTag('p', 'c', 't', 'r') | 53 #define SK_PICT_PICTURE_TAG SkSetFourByteTag('p', 'c', 't', 'r') |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 | 239 |
239 SkTypefacePlayback fTFPlayback; | 240 SkTypefacePlayback fTFPlayback; |
240 SkFactoryPlayback* fFactoryPlayback; | 241 SkFactoryPlayback* fFactoryPlayback; |
241 #ifdef SK_BUILD_FOR_ANDROID | 242 #ifdef SK_BUILD_FOR_ANDROID |
242 SkMutex fDrawMutex; | 243 SkMutex fDrawMutex; |
243 bool fAbortCurrentPlayback; | 244 bool fAbortCurrentPlayback; |
244 #endif | 245 #endif |
245 }; | 246 }; |
246 | 247 |
247 #endif | 248 #endif |
OLD | NEW |