diff options
author | Mike Reed <reed@google.com> | 2017-01-23 14:09:13 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-23 20:56:13 +0000 |
commit | 42e8c53b3ef58f887a623b410d9783b4d4ab4921 (patch) | |
tree | a6b9f9aa477c9aab16c69db2b9ab9c00ad1fed30 /src/core/SkRecorder.cpp | |
parent | ab23acf4fac009c08588dd9e37b8dd6bf384c9ee (diff) |
rename virtuals for clipbounds, and deprecate older bool/var-arg pattern
BUG=skia:
Change-Id: I08bcc2d0559e02838772538816b928e0716dd3aa
Reviewed-on: https://skia-review.googlesource.com/7412
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/core/SkRecorder.cpp')
-rw-r--r-- | src/core/SkRecorder.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/SkRecorder.cpp b/src/core/SkRecorder.cpp index f4c6b50f08..2f0f8369ee 100644 --- a/src/core/SkRecorder.cpp +++ b/src/core/SkRecorder.cpp @@ -383,7 +383,7 @@ SkCanvas::SaveLayerStrategy SkRecorder::getSaveLayerStrategy(const SaveLayerRec& } void SkRecorder::didRestore() { - APPEND(Restore, this->devBounds(), this->getTotalMatrix()); + APPEND(Restore, this->getDeviceClipBounds(), this->getTotalMatrix()); } void SkRecorder::didConcat(const SkMatrix& matrix) { @@ -407,24 +407,24 @@ void SkRecorder::didTranslateZ(SkScalar z) { void SkRecorder::onClipRect(const SkRect& rect, SkClipOp op, ClipEdgeStyle edgeStyle) { INHERITED(onClipRect, rect, op, edgeStyle); SkRecords::ClipOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); - APPEND(ClipRect, this->devBounds(), rect, opAA); + APPEND(ClipRect, this->getDeviceClipBounds(), rect, opAA); } void SkRecorder::onClipRRect(const SkRRect& rrect, SkClipOp op, ClipEdgeStyle edgeStyle) { INHERITED(onClipRRect, rrect, op, edgeStyle); SkRecords::ClipOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); - APPEND(ClipRRect, this->devBounds(), rrect, opAA); + APPEND(ClipRRect, this->getDeviceClipBounds(), rrect, opAA); } void SkRecorder::onClipPath(const SkPath& path, SkClipOp op, ClipEdgeStyle edgeStyle) { INHERITED(onClipPath, path, op, edgeStyle); SkRecords::ClipOpAndAA opAA(op, kSoft_ClipEdgeStyle == edgeStyle); - APPEND(ClipPath, this->devBounds(), path, opAA); + APPEND(ClipPath, this->getDeviceClipBounds(), path, opAA); } void SkRecorder::onClipRegion(const SkRegion& deviceRgn, SkClipOp op) { INHERITED(onClipRegion, deviceRgn, op); - APPEND(ClipRegion, this->devBounds(), deviceRgn, op); + APPEND(ClipRegion, this->getDeviceClipBounds(), deviceRgn, op); } sk_sp<SkSurface> SkRecorder::onNewSurface(const SkImageInfo&, const SkSurfaceProps&) { |