From 4bbdeac58cc928dc66296bde3bd06e78070d96b7 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Thu, 24 Jan 2013 21:03:11 +0000 Subject: add optional cull-rect to patheffects, so they can do less work if their results lie outside of the current clip-bounds (the cull rect). Review URL: https://codereview.appspot.com/7206044 git-svn-id: http://skia.googlecode.com/svn/trunk@7378 2bbb7eff-a529-9590-31e7-b0007b416f81 --- bench/DashBench.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bench/DashBench.cpp') diff --git a/bench/DashBench.cpp b/bench/DashBench.cpp index f10924605c..930688f4f6 100644 --- a/bench/DashBench.cpp +++ b/bench/DashBench.cpp @@ -206,7 +206,7 @@ protected: for (int i = 0; i < N; ++i) { SkStrokeRec rec(SkStrokeRec::kHairline_InitStyle); - fPE->filterPath(&dst, fPath, &rec); + fPE->filterPath(&dst, fPath, &rec, NULL); dst.rewind(); } } @@ -419,6 +419,6 @@ DEF_BENCH( return new GiantDashBench(p, GiantDashBench::kDiag_LineType, 0); ) // pass 2 to explicitly avoid any 1-is-the-same-as-hairline special casing // hori_2 is just too slow to enable at the moment -//DEF_BENCH( return new GiantDashBench(p, GiantDashBench::kHori_LineType, 2); ) +DEF_BENCH( return new GiantDashBench(p, GiantDashBench::kHori_LineType, 2); ) DEF_BENCH( return new GiantDashBench(p, GiantDashBench::kVert_LineType, 2); ) DEF_BENCH( return new GiantDashBench(p, GiantDashBench::kDiag_LineType, 2); ) -- cgit v1.2.3