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

Side by Side Diff: src/record/SkRecorder.cpp

Issue 245853002: Refactor SkRecord opts, converting playback optimizations where possible. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: apply Created 6 years, 8 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/record/SkRecordOpts.cpp ('k') | src/record/SkRecords.h » ('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 2014 Google Inc. 2 * Copyright 2014 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 #include "SkRecorder.h" 8 #include "SkRecorder.h"
9 #include "SkPicture.h" 9 #include "SkPicture.h"
10 10
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 INHERITED(willSaveLayer, bounds, paint, flags); 206 INHERITED(willSaveLayer, bounds, paint, flags);
207 return SkCanvas::kNoLayer_SaveLayerStrategy; 207 return SkCanvas::kNoLayer_SaveLayerStrategy;
208 } 208 }
209 209
210 void SkRecorder::willRestore() { 210 void SkRecorder::willRestore() {
211 APPEND(Restore); 211 APPEND(Restore);
212 INHERITED(willRestore); 212 INHERITED(willRestore);
213 } 213 }
214 214
215 void SkRecorder::onPushCull(const SkRect& rect) { 215 void SkRecorder::onPushCull(const SkRect& rect) {
216 APPEND(PushCull, rect, SkRecords::kUnsetPopOffset); 216 APPEND(PushCull, rect);
217 } 217 }
218 218
219 void SkRecorder::onPopCull() { 219 void SkRecorder::onPopCull() {
220 APPEND(PopCull); 220 APPEND(PopCull);
221 } 221 }
222 222
223 void SkRecorder::didConcat(const SkMatrix& matrix) { 223 void SkRecorder::didConcat(const SkMatrix& matrix) {
224 APPEND(Concat, matrix); 224 APPEND(Concat, matrix);
225 INHERITED(didConcat, matrix); 225 INHERITED(didConcat, matrix);
226 } 226 }
(...skipping 15 matching lines...) Expand all
242 242
243 void SkRecorder::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle e dgeStyle) { 243 void SkRecorder::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle e dgeStyle) {
244 APPEND(ClipPath, delay_copy(path), op, edgeStyle == kSoft_ClipEdgeStyle); 244 APPEND(ClipPath, delay_copy(path), op, edgeStyle == kSoft_ClipEdgeStyle);
245 INHERITED(updateClipConservativelyUsingBounds, path.getBounds(), op, path.is InverseFillType()); 245 INHERITED(updateClipConservativelyUsingBounds, path.getBounds(), op, path.is InverseFillType());
246 } 246 }
247 247
248 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { 248 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) {
249 APPEND(ClipRegion, delay_copy(deviceRgn), op); 249 APPEND(ClipRegion, delay_copy(deviceRgn), op);
250 INHERITED(onClipRegion, deviceRgn, op); 250 INHERITED(onClipRegion, deviceRgn, op);
251 } 251 }
OLDNEW
« no previous file with comments | « src/record/SkRecordOpts.cpp ('k') | src/record/SkRecords.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698