aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTessellator.cpp
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2018-02-13 21:46:17 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-14 17:21:17 +0000
commit84403d7f53d88b2449fd19415538ba1479fe300b (patch)
treef8df6e8845b72bebafc1a06fa60ed8868d2ce78b /src/gpu/GrTessellator.cpp
parent7d79e7b588e8286edee853e2c274a6daa48d88d1 (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. TBR=bsalomon@google.com Change-Id: I396b887075d4422531908c2361ee1e26f076d5c3 Reviewed-on: https://skia-review.googlesource.com/107141 Reviewed-by: Chris Dalton <csmartdalton@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);