| 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 SkPictureData_DEFINED | 8 #ifndef SkPictureData_DEFINED |
| 9 #define SkPictureData_DEFINED | 9 #define SkPictureData_DEFINED |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 struct SkPictInfo { | 31 struct SkPictInfo { |
| 32 enum Flags { | 32 enum Flags { |
| 33 kCrossProcess_Flag = 1 << 0, | 33 kCrossProcess_Flag = 1 << 0, |
| 34 kScalarIsFloat_Flag = 1 << 1, | 34 kScalarIsFloat_Flag = 1 << 1, |
| 35 kPtrIs64Bit_Flag = 1 << 2, | 35 kPtrIs64Bit_Flag = 1 << 2, |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 char fMagic[8]; | 38 char fMagic[8]; |
| 39 uint32_t fVersion; | 39 uint32_t fVersion; |
| 40 uint32_t fWidth; | 40 SkRect fCullRect; |
| 41 uint32_t fHeight; | |
| 42 uint32_t fFlags; | 41 uint32_t fFlags; |
| 43 }; | 42 }; |
| 44 | 43 |
| 45 #define SK_PICT_READER_TAG SkSetFourByteTag('r', 'e', 'a', 'd') | 44 #define SK_PICT_READER_TAG SkSetFourByteTag('r', 'e', 'a', 'd') |
| 46 #define SK_PICT_FACTORY_TAG SkSetFourByteTag('f', 'a', 'c', 't') | 45 #define SK_PICT_FACTORY_TAG SkSetFourByteTag('f', 'a', 'c', 't') |
| 47 #define SK_PICT_TYPEFACE_TAG SkSetFourByteTag('t', 'p', 'f', 'c') | 46 #define SK_PICT_TYPEFACE_TAG SkSetFourByteTag('t', 'p', 'f', 'c') |
| 48 #define SK_PICT_PICTURE_TAG SkSetFourByteTag('p', 'c', 't', 'r') | 47 #define SK_PICT_PICTURE_TAG SkSetFourByteTag('p', 'c', 't', 'r') |
| 49 | 48 |
| 50 // This tag specifies the size of the ReadBuffer, needed for the following tags | 49 // This tag specifies the size of the ReadBuffer, needed for the following tags |
| 51 #define SK_PICT_BUFFER_SIZE_TAG SkSetFourByteTag('a', 'r', 'a', 'y') | 50 #define SK_PICT_BUFFER_SIZE_TAG SkSetFourByteTag('a', 'r', 'a', 'y') |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 203 |
| 205 const SkPictInfo fInfo; | 204 const SkPictInfo fInfo; |
| 206 | 205 |
| 207 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec); | 206 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec); |
| 208 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec); | 207 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec); |
| 209 | 208 |
| 210 void initForPlayback() const; | 209 void initForPlayback() const; |
| 211 }; | 210 }; |
| 212 | 211 |
| 213 #endif | 212 #endif |
| OLD | NEW |