diff options
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; |