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

Side by Side 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: Count SKPs per canvas not per invocation 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 unified diff | Download patch
« no previous file with comments | « tools/lua/paths.lua ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 clips = 0
3 draws = 0
4 clipPaths = 0
5 drawPaths = 0
6 swClipPaths = 0
7 swDrawPaths = 0
8
9 skpsTotal = 0
10 skpsWithPath = 0
11 skpsWithSWPath = 0
12
13 dofile("/tmp/lua-output")
14
15 io.write("Number of clips: ", clips, "\n");
16 io.write("Number of draws: ", draws, "\n");
17 io.write("Number of clipped paths: ", clipPaths, "\n");
18 io.write("Number of drawn paths: ", drawPaths, "\n");
19 io.write("Number of clipped software paths: ", swClipPaths, "\n");
20 io.write("Number of drawn software paths: ", swDrawPaths, "\n");
21
22 io.write("\n")
23
24 io.write("Number of SKPs total: ", skpsTotal, "\n")
25 io.write("Number of SKPs that draw paths: ", skpsWithPath, "\n")
26 io.write("Number of SKPs that draw SW paths: ", skpsWithSWPath, "\n")
27
28 io.write("\n")
29 io.write("\n")
30
31 totalSWPaths = swDrawPaths + swClipPaths
32 totalPaths = drawPaths + clipPaths
33
34 io.write("Percentage of paths needing software: ", (100*(totalSWPaths / totalPat hs)), "\n")
35 io.write("Percentage of draws/clips needing software: ",
36 (100*(totalSWPaths / (draws + clips))), "\n")
37
38 io.write("\n")
39
40 io.write("Percentage of SKPs that draw paths: ", (100*(skpsWithPath / skpsTotal) ), "\n")
41 io.write("Percentage of SKPs that draw SW paths: ", (100*(skpsWithSWPath / skpsT otal)), "\n")
OLDNEW
« no previous file with comments | « tools/lua/paths.lua ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698