| 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 } | 362 } |
| 363 | 363 |
| 364 void SkRecorder::didConcat(const SkMatrix& matrix) { | 364 void SkRecorder::didConcat(const SkMatrix& matrix) { |
| 365 APPEND(Concat, matrix); | 365 APPEND(Concat, matrix); |
| 366 } | 366 } |
| 367 | 367 |
| 368 void SkRecorder::didSetMatrix(const SkMatrix& matrix) { | 368 void SkRecorder::didSetMatrix(const SkMatrix& matrix) { |
| 369 APPEND(SetMatrix, matrix); | 369 APPEND(SetMatrix, matrix); |
| 370 } | 370 } |
| 371 | 371 |
| 372 void SkRecorder::didTranslateZ(SkScalar z) { | |
| 373 APPEND(TranslateZ, z); | |
| 374 } | |
| 375 | |
| 376 void SkRecorder::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle e
dgeStyle) { | 372 void SkRecorder::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle e
dgeStyle) { |
| 377 INHERITED(onClipRect, rect, op, edgeStyle); | 373 INHERITED(onClipRect, rect, op, edgeStyle); |
| 378 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); | 374 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); |
| 379 APPEND(ClipRect, this->devBounds(), rect, opAA); | 375 APPEND(ClipRect, this->devBounds(), rect, opAA); |
| 380 } | 376 } |
| 381 | 377 |
| 382 void SkRecorder::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyl
e edgeStyle) { | 378 void SkRecorder::onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyl
e edgeStyle) { |
| 383 INHERITED(onClipRRect, rrect, op, edgeStyle); | 379 INHERITED(onClipRRect, rrect, op, edgeStyle); |
| 384 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); | 380 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); |
| 385 APPEND(ClipRRect, this->devBounds(), rrect, opAA); | 381 APPEND(ClipRRect, this->devBounds(), rrect, opAA); |
| 386 } | 382 } |
| 387 | 383 |
| 388 void SkRecorder::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle e
dgeStyle) { | 384 void SkRecorder::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle e
dgeStyle) { |
| 389 INHERITED(onClipPath, path, op, edgeStyle); | 385 INHERITED(onClipPath, path, op, edgeStyle); |
| 390 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); | 386 SkRecords::RegionOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); |
| 391 APPEND(ClipPath, this->devBounds(), path, opAA); | 387 APPEND(ClipPath, this->devBounds(), path, opAA); |
| 392 } | 388 } |
| 393 | 389 |
| 394 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { | 390 void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) { |
| 395 INHERITED(onClipRegion, deviceRgn, op); | 391 INHERITED(onClipRegion, deviceRgn, op); |
| 396 APPEND(ClipRegion, this->devBounds(), deviceRgn, op); | 392 APPEND(ClipRegion, this->devBounds(), deviceRgn, op); |
| 397 } | 393 } |
| 398 | 394 |
| 399 sk_sp<SkSurface> SkRecorder::onNewSurface(const SkImageInfo&, const SkSurfacePro
ps&) { | 395 sk_sp<SkSurface> SkRecorder::onNewSurface(const SkImageInfo&, const SkSurfacePro
ps&) { |
| 400 return nullptr; | 396 return nullptr; |
| 401 } | 397 } |
| OLD | NEW |