diff options
author | Mike Klein <mtklein@chromium.org> | 2017-11-27 16:30:35 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-27 23:16:08 +0000 |
commit | 7b093b77427ab52dc7a43deef3ebbeae378e7b2c (patch) | |
tree | cec8b99afead7637feed6d04096efae48c9f892e /tools/debugger | |
parent | 3b51df12119d82661ed64efa87d5ccfe2d32f625 (diff) |
remove SkDebugCanvas clip query overrides
We don't think these are important, and it's looking
like overriding these methods at all is a bad idea.
While here we can remove kVizImageHeight and width too, as they're
unused. After all these deletions the comment about methods inherited
from SkCanvas no longer applies.
Change-Id: I036eb9ccca4821516a287daec9847addd529a28c
Reviewed-on: https://skia-review.googlesource.com/76480
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'tools/debugger')
-rw-r--r-- | tools/debugger/SkDebugCanvas.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tools/debugger/SkDebugCanvas.h b/tools/debugger/SkDebugCanvas.h index 72d65d7da7..634d5b416d 100644 --- a/tools/debugger/SkDebugCanvas.h +++ b/tools/debugger/SkDebugCanvas.h @@ -165,25 +165,6 @@ public: Json::Value toJSONOpList(int n, SkCanvas*); - //////////////////////////////////////////////////////////////////////////////// - // Inherited from SkCanvas - //////////////////////////////////////////////////////////////////////////////// - - static const int kVizImageHeight = 256; - static const int kVizImageWidth = 256; - - bool isClipEmpty() const override { return false; } - - bool isClipRect() const override { return true; } - - SkRect onGetLocalClipBounds() const override { - return SkRect::MakeIWH(this->imageInfo().width(), this->imageInfo().height()); - } - - SkIRect onGetDeviceClipBounds() const override { - return SkIRect::MakeWH(this->imageInfo().width(), this->imageInfo().height()); - } - void detachCommands(SkTDArray<SkDrawCommand*>* dst) { fCommandVector.swap(*dst); } |