aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/CanvasTest.cpp
diff options
context:
space:
mode:
authorGravatar fmalita <fmalita@chromium.org>2016-01-12 07:21:11 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-12 07:21:11 -0800
commit32cdc32522bf39a8236880f57ff4ee5b26bdd363 (patch)
tree4dc6f63fe1c65ae124985be47c79b57d116d2e88 /tests/CanvasTest.cpp
parenta51e7782b2e028a38712a159c412e6151eca1666 (diff)
SkTCopyOnFirstWrite-based SkPaintFilterCanvas API
I find this version preferable because 1) it consolidates the in/out paint args without compromising efficiency or flexibility 2) relieves overriders from having to set the SkTLazy explicitly BUG=skia:4782 R=mtklein@google.com,reed@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1576183002 Review URL: https://codereview.chromium.org/1576183002
Diffstat (limited to 'tests/CanvasTest.cpp')
-rw-r--r--tests/CanvasTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/CanvasTest.cpp b/tests/CanvasTest.cpp
index 516dd05c25..774e85d242 100644
--- a/tests/CanvasTest.cpp
+++ b/tests/CanvasTest.cpp
@@ -730,7 +730,7 @@ public:
MockFilterCanvas(SkCanvas* canvas) : INHERITED(canvas) { }
protected:
- bool onFilter(const SkPaint*, Type, SkTLazy<SkPaint>*) const override { return true; }
+ bool onFilter(SkTCopyOnFirstWrite<SkPaint>*, Type) const override { return true; }
private:
typedef SkPaintFilterCanvas INHERITED;