Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(468)

Side by Side Diff: src/core/SkPictureData.h

Issue 388833003: Remove Skia's use of the default SkPicture constructor and multi-clone (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix test Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/core/SkPicture.cpp ('k') | src/core/SkPictureData.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/core/SkPicture.cpp ('k') | src/core/SkPictureData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698