diff options
author | Mike Reed <reed@google.com> | 2017-03-02 11:23:46 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-02 18:57:45 +0000 |
commit | c77e33f73d3e86cfabf925d6f2e1166f81022575 (patch) | |
tree | 8830c10ea1e9f3295ae9116b90120b3d811290ff /tests/LayerDrawLooperTest.cpp | |
parent | 8e8e817cbf6c6e3df744dbaa070564c453b70a62 (diff) |
Remove SkDraw from device-draw methods, and enable device-centric clipping.
BUG=skia:6214
Change-Id: I593900724310d09133ae4791ef68d38c43762fc2
Reviewed-on: https://skia-review.googlesource.com/8806
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'tests/LayerDrawLooperTest.cpp')
-rw-r--r-- | tests/LayerDrawLooperTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/LayerDrawLooperTest.cpp b/tests/LayerDrawLooperTest.cpp index 2910341be8..f3705b77be 100644 --- a/tests/LayerDrawLooperTest.cpp +++ b/tests/LayerDrawLooperTest.cpp @@ -30,9 +30,9 @@ public: FakeDevice() : INHERITED(make_bm(100, 100), SkSurfaceProps(0, kUnknown_SkPixelGeometry)) { } - void drawRect(const SkDraw& draw, const SkRect& r, const SkPaint& paint) override { - fLastMatrix = *draw.fMatrix; - this->INHERITED::drawRect(draw, r, paint); + void drawRect(const SkRect& r, const SkPaint& paint) override { + fLastMatrix = this->ctm(); + this->INHERITED::drawRect(r, paint); } SkMatrix fLastMatrix; |