aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTessellator.cpp
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2018-02-07 13:02:58 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-12 17:06:31 +0000
commit4138c972effe4eb0227fbb96571df290f3d1979b (patch)
treef506f42ba68294dac155f09c01f77ae8186e3150 /src/gpu/GrTessellator.cpp
parenta58bcf7ef8227708dad1501db59bd506e83e5341 (diff)
ccpr: Tessellate fans for very large and/or simple paths
This increases CPU work, but reduces overdraw on the GPU as compared to Redbook fanning. Bug: skia: Change-Id: I47239c964261e0014a94266a71223eab0597bfb8 Reviewed-on: https://skia-review.googlesource.com/105203 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrTessellator.cpp')
-rw-r--r--src/gpu/GrTessellator.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/GrTessellator.cpp b/src/gpu/GrTessellator.cpp
index 2974cf02db..00e5c8a21c 100644
--- a/src/gpu/GrTessellator.cpp
+++ b/src/gpu/GrTessellator.cpp
@@ -2359,6 +2359,7 @@ int PathToVertices(const SkPath& path, SkScalar tolerance, const SkRect& clipBou
GrTessellator::WindingVertex** verts) {
int contourCnt = get_contour_count(path, tolerance);
if (contourCnt <= 0) {
+ *verts = nullptr;
return 0;
}
SkArenaAlloc alloc(kArenaChunkSize);