| 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 "SkBigPicture.h" | 8 #include "SkBigPicture.h" |
| 9 #include "SkCanvasPriv.h" | 9 #include "SkCanvasPriv.h" |
| 10 #include "SkPatchUtils.h" | 10 #include "SkPatchUtils.h" |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 } | 352 } |
| 353 | 353 |
| 354 void SkRecorder::didConcat(const SkMatrix& matrix) { | 354 void SkRecorder::didConcat(const SkMatrix& matrix) { |
| 355 APPEND(Concat, matrix); | 355 APPEND(Concat, matrix); |
| 356 } | 356 } |
| 357 | 357 |
| 358 void SkRecorder::didSetMatrix(const SkMatrix& matrix) { | 358 void SkRecorder::didSetMatrix(const SkMatrix& matrix) { |
| 359 APPEND(SetMatrix, matrix); | 359 APPEND(SetMatrix, matrix); |
| 360 } | 360 } |
| 361 | 361 |
| 362 void SkRecorder::didTranslateZ(SkScalar z) { |
| 363 APPEND(TranslateZ, z); |
| 364 } |
| 365 |
| 362 void SkRecorder::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle e
dgeStyle) { | 366 void SkRecorder::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle e
dgeStyle) { |
| 363 INHERITED(onClipRect, rect, op, edgeStyle); | 367 INHERITED(onClipRect, rect, op, edgeStyle); |
| 364 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); | 368 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); |
| 365 APPEND(ClipRect, this->devBounds(), rect, opAA); | 369 APPEND(ClipRect, this->devBounds(), rect, opAA); |
| 366 } | 370 } |
| 367 | 371 |
| 368 void SkRecorder::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyl
e edgeStyle) { | 372 void SkRecorder::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyl
e edgeStyle) { |
| 369 INHERITED(onClipRRect, rrect, op, edgeStyle); | 373 INHERITED(onClipRRect, rrect, op, edgeStyle); |
| 370 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); | 374 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); |
| 371 APPEND(ClipRRect, this->devBounds(), rrect, opAA); | 375 APPEND(ClipRRect, this->devBounds(), rrect, opAA); |
| 372 } | 376 } |
| 373 | 377 |
| 374 void SkRecorder::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle e
dgeStyle) { | 378 void SkRecorder::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle e
dgeStyle) { |
| 375 INHERITED(onClipPath, path, op, edgeStyle); | 379 INHERITED(onClipPath, path, op, edgeStyle); |
| 376 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); | 380 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); |
| 377 APPEND(ClipPath, this->devBounds(), path, opAA); | 381 APPEND(ClipPath, this->devBounds(), path, opAA); |
| 378 } | 382 } |
| 379 | 383 |
| 380 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { | 384 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { |
| 381 INHERITED(onClipRegion, deviceRgn, op); | 385 INHERITED(onClipRegion, deviceRgn, op); |
| 382 APPEND(ClipRegion, this->devBounds(), deviceRgn, op); | 386 APPEND(ClipRegion, this->devBounds(), deviceRgn, op); |
| 383 } | 387 } |
| 384 | 388 |
| 385 sk_sp<SkSurface> SkRecorder::onNewSurface(const SkImageInfo&, const SkSurfacePro
ps&) { | 389 sk_sp<SkSurface> SkRecorder::onNewSurface(const SkImageInfo&, const SkSurfacePro
ps&) { |
| 386 return nullptr; | 390 return nullptr; |
| 387 } | 391 } |
| OLD | NEW |