OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |