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

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

Issue 338633011: Deprecate SkPicture::clone(). (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add define for chrome 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
OLDNEW
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 8
9 #ifndef SkPicturePlayback_DEFINED 9 #ifndef SkPicturePlayback_DEFINED
10 #define SkPicturePlayback_DEFINED 10 #define SkPicturePlayback_DEFINED
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // dashed, we are drawing a line, and we can use the gpu fast path 112 // dashed, we are drawing a line, and we can use the gpu fast path
113 int fNumFastPathDashEffects; 113 int fNumFastPathDashEffects;
114 // This field is incremented every time an anti-aliased drawPath call is 114 // This field is incremented every time an anti-aliased drawPath call is
115 // issued with a concave path 115 // issued with a concave path
116 int fNumAAConcavePaths; 116 int fNumAAConcavePaths;
117 // This field is incremented every time a drawPath call is 117 // This field is incremented every time a drawPath call is
118 // issued for a hairline stroked concave path. 118 // issued for a hairline stroked concave path.
119 int fNumAAHairlineConcavePaths; 119 int fNumAAHairlineConcavePaths;
120 }; 120 };
121 121
122 #ifdef SK_SUPPORT_LEGACY_PICTURE_CLONE
122 /** 123 /**
123 * Container for data that is needed to deep copy a SkPicture. The container 124 * Container for data that is needed to deep copy a SkPicture. The container
124 * enables the data to be generated once and reused for subsequent copies. 125 * enables the data to be generated once and reused for subsequent copies.
125 */ 126 */
126 struct SkPictCopyInfo { 127 struct SkPictCopyInfo {
127 SkPictCopyInfo() : initialized(false), controller(1024) {} 128 SkPictCopyInfo() : initialized(false), controller(1024) {}
128 129
129 bool initialized; 130 bool initialized;
130 SkChunkFlatController controller; 131 SkChunkFlatController controller;
131 SkTDArray<SkFlatData*> paintData; 132 SkTDArray<SkFlatData*> paintData;
132 }; 133 };
134 #endif
133 135
134 class SkPicturePlayback { 136 class SkPicturePlayback {
135 public: 137 public:
138 #ifdef SK_SUPPORT_LEGACY_PICTURE_CLONE
136 SkPicturePlayback(const SkPicturePlayback& src, 139 SkPicturePlayback(const SkPicturePlayback& src,
137 SkPictCopyInfo* deepCopyInfo = NULL); 140 SkPictCopyInfo* deepCopyInfo = NULL);
141 #else
142 SkPicturePlayback(const SkPicturePlayback& src);
143 #endif
138 SkPicturePlayback(const SkPictureRecord& record, const SkPictInfo&, bool dee pCopyOps); 144 SkPicturePlayback(const SkPictureRecord& record, const SkPictInfo&, bool dee pCopyOps);
139 static SkPicturePlayback* CreateFromStream(SkStream*, 145 static SkPicturePlayback* CreateFromStream(SkStream*,
140 const SkPictInfo&, 146 const SkPictInfo&,
141 SkPicture::InstallPixelRefProc); 147 SkPicture::InstallPixelRefProc);
142 static SkPicturePlayback* CreateFromBuffer(SkReadBuffer&, 148 static SkPicturePlayback* CreateFromBuffer(SkReadBuffer&,
143 const SkPictInfo&); 149 const SkPictInfo&);
144 150
145 virtual ~SkPicturePlayback(); 151 virtual ~SkPicturePlayback();
146 152
147 const SkPicture::OperationList& getActiveOps(const SkIRect& queryRect); 153 const SkPicture::OperationList& getActiveOps(const SkIRect& queryRect);
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 426
421 void initForPlayback() const; 427 void initForPlayback() const;
422 428
423 #ifdef SK_BUILD_FOR_ANDROID 429 #ifdef SK_BUILD_FOR_ANDROID
424 SkMutex fDrawMutex; 430 SkMutex fDrawMutex;
425 bool fAbortCurrentPlayback; 431 bool fAbortCurrentPlayback;
426 #endif 432 #endif
427 }; 433 };
428 434
429 #endif 435 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698