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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // issued for a hairline stroked concave path. | 113 // issued for a hairline stroked concave path. |
114 int fNumAAHairlineConcavePaths; | 114 int fNumAAHairlineConcavePaths; |
115 }; | 115 }; |
116 | 116 |
117 #ifdef SK_SUPPORT_LEGACY_PICTURE_CLONE | 117 #ifdef SK_SUPPORT_LEGACY_PICTURE_CLONE |
118 /** | 118 /** |
119 * Container for data that is needed to deep copy a SkPicture. The container | 119 * Container for data that is needed to deep copy a SkPicture. The container |
120 * enables the data to be generated once and reused for subsequent copies. | 120 * enables the data to be generated once and reused for subsequent copies. |
121 */ | 121 */ |
122 struct SkPictCopyInfo { | 122 struct SkPictCopyInfo { |
123 SkPictCopyInfo() : initialized(false), controller(1024) {} | 123 SkPictCopyInfo() : controller(1024) {} |
124 | 124 |
125 bool initialized; | |
126 SkChunkFlatController controller; | 125 SkChunkFlatController controller; |
127 SkTDArray<SkFlatData*> paintData; | 126 SkTDArray<SkFlatData*> paintData; |
128 }; | 127 }; |
129 #endif | 128 #endif |
130 | 129 |
131 class SkPictureData { | 130 class SkPictureData { |
132 public: | 131 public: |
133 #ifdef SK_SUPPORT_LEGACY_PICTURE_CLONE | 132 #ifdef SK_SUPPORT_LEGACY_PICTURE_CLONE |
134 SkPictureData(const SkPictureData& src, SkPictCopyInfo* deepCopyInfo = NULL)
; | 133 SkPictureData(const SkPictureData& src, SkPictCopyInfo* deepCopyInfo = NULL)
; |
135 #endif | 134 #endif |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 | 278 |
280 const SkPictInfo fInfo; | 279 const SkPictInfo fInfo; |
281 | 280 |
282 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec); | 281 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec); |
283 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec); | 282 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec); |
284 | 283 |
285 void initForPlayback() const; | 284 void initForPlayback() const; |
286 }; | 285 }; |
287 | 286 |
288 #endif | 287 #endif |
OLD | NEW |