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

Unified Diff: tools/lua/scrape.lua

Issue 15563013: add SkPath as real lua object (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 7 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/SkLuaCanvas.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/lua/scrape.lua
diff --git a/tools/lua/scrape.lua b/tools/lua/scrape.lua
index e4a38ae92d4596544ec5fc6715db2888c7d3a243..92636121da7405514b9187890d33b4ef00526d07 100644
--- a/tools/lua/scrape.lua
+++ b/tools/lua/scrape.lua
@@ -57,6 +57,17 @@ function sk_scrape_accumulate(t)
print("... ", tostr(m), "\n")
end
+ if false and t.verb == "drawPath" then
+ local pred, r1, r2, d1, d2 = t.path:isNestedRects()
+
+ if pred then
+ print("drawRect_Nested", tostr(r1), tostr(r2), d1, d2)
+ else
+ print("drawPath", "isEmpty", tostring(t.path:isEmpty()),
+ "isRect", tostring(t.path:isRect()), tostr(t.path:getBounds()))
+ end
+ end
+
-- enable to dump all of the parameters we were sent
if false then
-- dump the params in t, specifically showing the verb first, which we
« no previous file with comments | « src/utils/SkLuaCanvas.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698