aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-01-23 14:09:13 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-01-23 20:56:13 +0000
commit42e8c53b3ef58f887a623b410d9783b4d4ab4921 (patch)
treea6b9f9aa477c9aab16c69db2b9ab9c00ad1fed30 /tools
parentab23acf4fac009c08588dd9e37b8dd6bf384c9ee (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 'tools')
-rw-r--r--tools/debugger/SkDebugCanvas.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/tools/debugger/SkDebugCanvas.h b/tools/debugger/SkDebugCanvas.h
index 4a81e26dd9..57bf99874a 100644
--- a/tools/debugger/SkDebugCanvas.h
+++ b/tools/debugger/SkDebugCanvas.h
@@ -175,20 +175,12 @@ public:
bool isClipRect() const override { return true; }
- bool getClipBounds(SkRect *bounds) const override {
- if (bounds) {
- bounds->setXYWH(0, 0,
- SkIntToScalar(this->imageInfo().width()),
- SkIntToScalar(this->imageInfo().height()));
- }
- return true;
+ SkRect onGetLocalClipBounds() const override {
+ return SkRect::MakeIWH(this->imageInfo().width(), this->imageInfo().height());
}
- bool getClipDeviceBounds(SkIRect *bounds) const override {
- if (bounds) {
- bounds->setLargest();
- }
- return true;
+ SkIRect onGetDeviceClipBounds() const override {
+ return SkIRect::MakeWH(this->imageInfo().width(), this->imageInfo().height());
}
protected: