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

Unified Diff: tools/lua/dump_clipstack_at_restore.lua

Issue 178243002: Add some SkPath lua functions (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/utils/SkLua.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/lua/dump_clipstack_at_restore.lua
diff --git a/tools/lua/dump_clipstack_at_restore.lua b/tools/lua/dump_clipstack_at_restore.lua
index d53f5a3712b924acd3ca49b7b5faefa7fb604728..4691b5b250720fd6c906b3b9958cda7c14d3d8e9 100644
--- a/tools/lua/dump_clipstack_at_restore.lua
+++ b/tools/lua/dump_clipstack_at_restore.lua
@@ -14,7 +14,13 @@ function sk_scrape_accumulate(t)
io.write("Clip Stack at restore #", restoreCount, ":\n")
for i = 1, #clipstack do
local element = clipstack[i];
- io.write("\t", element["op"], ", ", element["type"], ", aa:", tostring(element["aa"]), "\n")
+ io.write("\t", element["op"], ", ", element["type"], ", aa:", tostring(element["aa"]))
+ if (element["type"] == "path") then
+ io.write(", fill: ", element["path"]:getFillType())
+ io.write(", segments: \"", element["path"]:getSegmentTypes(), "\"")
+ io.write(", convex:", tostring(element["path"]:isConvex()))
+ end
+ io.write("\n")
end
io.write("\n")
else
« 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