Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Unified Diff: tools/lua/paths_agg.lua

Issue 475433004: Add scraper to find paths that fallback to software (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« tools/lua/paths.lua ('K') | « tools/lua/paths.lua ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/lua/paths_agg.lua
diff --git a/tools/lua/paths_agg.lua b/tools/lua/paths_agg.lua
new file mode 100644
index 0000000000000000000000000000000000000000..b996a114a286e25f0bbe6ddf528f56861c951426
--- /dev/null
+++ b/tools/lua/paths_agg.lua
@@ -0,0 +1,13 @@
+
+draws = 0;
+drawPaths = 0;
+swPaths = 0;
+
+dofile("/tmp/lua-output")
+
+io.write("Number of draws: ", draws, "\n");
+io.write("Number of paths: ", drawPaths, "\n");
+io.write("Number of concave, anti-aliased paths: ", swPaths, "\n");
+
+io.write("Percentage of paths needing software: ", (100* (swPaths / drawPaths)), "\n")
+io.write("Percentage of draws needing software: ", (100* (swPaths / draws)), "\n")
« tools/lua/paths.lua ('K') | « tools/lua/paths.lua ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698