diff options
author | 2017-01-23 14:09:13 -0500 | |
---|---|---|
committer | 2017-01-23 20:56:13 +0000 | |
commit | 42e8c53b3ef58f887a623b410d9783b4d4ab4921 (patch) | |
tree | a6b9f9aa477c9aab16c69db2b9ab9c00ad1fed30 /tools | |
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 'tools')
-rw-r--r-- | tools/debugger/SkDebugCanvas.h | 16 |
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: |