aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/gm.gni
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-05-17 15:10:18 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-17 19:45:10 +0000
commit6e3ce40bd93e5de16b0086cb70320ff3283e72cf (patch)
tree46e0a7ef4081c445b31a6d1d32579622d900b108 /gn/gm.gni
parente37fad000382c037dddf75f5414c2b8c13882b51 (diff)
Add GM to verify that drawX == (path.addX, drawPath)
This demonstrates a new kind of hybrid unit test/GM. It creates a grid of cells. In each cell, we do two renders that are expected to produce the same result. For each cell, we render the two results overlaid, and highlight any differing pixels in red. Assuming there is a diff, the area around the largest diff is drawn zoomed in from both images. Matching cells are outlined in green, failing cells are outlined in red. Triaging this GM just involves answering the question: "Are there any red boxes?" "Good" example: https://screenshot.googleplex.com/909P3tvS55f.png "Bad" example: https://screenshot.googleplex.com/oXBWbEKw5ur.png To get more tests to pass, (and fix an assert in Ganesh), I've gone ahead and enforced that user supplied rects (in drawRect and drawOval) are always sorted once they hit the canvas virtuals. Currently, drawArc rejects empty ovals, but I added the same assert to onDrawArc, if we decide to change the strategy there. Re-land of: https://skia-review.googlesource.com/c/16983/ Bug: skia: Change-Id: I48f85de5f2bcb7fdc9558c2fd80cb1f20800b244 Reviewed-on: https://skia-review.googlesource.com/17270 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'gn/gm.gni')
-rw-r--r--gn/gm.gni1
1 files changed, 1 insertions, 0 deletions
diff --git a/gn/gm.gni b/gn/gm.gni
index 5e336411ad..0a6681b4fd 100644
--- a/gn/gm.gni
+++ b/gn/gm.gni
@@ -259,6 +259,7 @@ gm_sources = [
"$_gm/shadowutils.cpp",
"$_gm/shallowgradient.cpp",
"$_gm/shapes.cpp",
+ "$_gm/shapes_as_paths.cpp",
"$_gm/showmiplevels.cpp",
"$_gm/simpleaaclip.cpp",
"$_gm/simple_magnification.cpp",