aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/gpu.gni
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2018-03-09 11:57:40 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-09 19:25:11 +0000
commit8738cf4c191d1a6ad2946ec2f9998eec47b55187 (patch)
tree2195b1658cbf4fcccb9501416240b56c4e828469 /gn/gpu.gni
parent43f0ba073068b6334844bd0e2e48f11ddb2b068d (diff)
ccpr: Simplify triangle corners
Modifies triangle corner shaders to just approximate their coverage with linear values that ramp to zero at bloat vertices outside the triangle. For the vertex backend, since corners now have the same fragment shader as the rest of the triangle, we fold them in with the other steps and draw triangles in a single pass. The geometry backend still draws triangles in two passes, as there is not an apparent performance advantage in combining them. Updates SampleCCPRGeometry to better visualize this new geometry by clearing to black and drawing with SkBlendMode::kPlus. Bug: skia: Change-Id: Idf8df8ff715dfab7ac91a07b914f65c08e46010b Reviewed-on: https://skia-review.googlesource.com/113287 Commit-Queue: Chris Dalton <csmartdalton@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'gn/gpu.gni')
-rw-r--r--gn/gpu.gni1
1 files changed, 0 insertions, 1 deletions
diff --git a/gn/gpu.gni b/gn/gpu.gni
index 457b4057cc..ac52fe2bc1 100644
--- a/gn/gpu.gni
+++ b/gn/gpu.gni
@@ -318,7 +318,6 @@ skia_gpu_sources = [
"$_src/gpu/ccpr/GrCCPathProcessor.h",
"$_src/gpu/ccpr/GrCCQuadraticShader.cpp",
"$_src/gpu/ccpr/GrCCQuadraticShader.h",
- "$_src/gpu/ccpr/GrCCTriangleShader.cpp",
"$_src/gpu/ccpr/GrCCTriangleShader.h",
"$_src/gpu/ccpr/GrCoverageCountingPathRenderer.cpp",
"$_src/gpu/ccpr/GrCoverageCountingPathRenderer.h",