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

Side by Side Diff: tools/lua/dump_clipstack_at_restore.lua

Issue 177933003: Add getClipStack method to lua SkCanvas (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: remove extra code from lua script Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « src/utils/SkLua.cpp ('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 function sk_scrape_startcanvas(c, fileName)
2 canvas = c
3 clipstack = {}
4 restoreCount = 0
5 end
6
7 function sk_scrape_endcanvas(c, fileName)
8 canvas = nil
9 end
10
11 function sk_scrape_accumulate(t)
12 if (t.verb == "restore") then
13 restoreCount = restoreCount + 1;
14 io.write("Clip Stack at restore #", restoreCount, ":\n")
15 for i = 1, #clipstack do
16 local element = clipstack[i];
17 io.write("\t", element["op"], ", ", element["type"], ", aa:", tostri ng(element["aa"]), "\n")
18 end
19 io.write("\n")
20 else
21 clipstack = canvas:getClipStack()
22 end
23 end
24
25 function sk_scrape_summarize() end
OLDNEW
« no previous file with comments | « src/utils/SkLua.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698