diff options
author | Chris Dalton <csmartdalton@google.com> | 2017-09-08 16:25:08 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-12 20:04:20 +0000 |
commit | db91c6e7fbfc9d1d8fd203f7e08eefb602e4a0b9 (patch) | |
tree | cb13d0253d2161a7e995bc94fc8cedb85df7dd04 /tests | |
parent | a640c49b7ecf667696542143edec96d10a940592 (diff) |
Improve heuristics for when to use ccpr
Gives the convex and tessellating renderers first claim on larger
paths, and the distance field renderer first claim on complex,
non-volatile paths. This also requires plumbing the clip bounds
through GrPathRenderer::CanDrawPathArgs.
Bug: skia:
Change-Id: I16e1d35ad5ee63251e33f113b1579cbba60456da
Reviewed-on: https://skia-review.googlesource.com/42224
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/TessellatingPathRendererTests.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/TessellatingPathRendererTests.cpp b/tests/TessellatingPathRendererTests.cpp index 0ae5d55bda..62bf0595b3 100644 --- a/tests/TessellatingPathRendererTests.cpp +++ b/tests/TessellatingPathRendererTests.cpp @@ -399,6 +399,8 @@ static void test_path(GrContext* ctx, } GrNoClip noClip; + SkIRect clipConservativeBounds = SkIRect::MakeWH(renderTargetContext->width(), + renderTargetContext->height()); GrStyle style(SkStrokeRec::kFill_InitStyle); GrShape shape(path, style); GrPathRenderer::DrawPathArgs args{ctx, @@ -406,6 +408,7 @@ static void test_path(GrContext* ctx, &GrUserStencilSettings::kUnused, renderTargetContext, &noClip, + &clipConservativeBounds, &matrix, &shape, aaType, |