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

Unified Diff: tools/lua/dump_clipstack_at_restore.lua

Issue 181903002: Revert "Revert of Add getReducedClipStack to lua canvas (https://codereview.chromium.org/180283004/… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix no gpu build 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 4691b5b250720fd6c906b3b9958cda7c14d3d8e9..eb5afb9bdba91ca8c5617d6317174224f2a75f7d 100644
--- a/tools/lua/dump_clipstack_at_restore.lua
+++ b/tools/lua/dump_clipstack_at_restore.lua
@@ -11,7 +11,8 @@ end
function sk_scrape_accumulate(t)
if (t.verb == "restore") then
restoreCount = restoreCount + 1;
- io.write("Clip Stack at restore #", restoreCount, ":\n")
+ -- io.write("Clip Stack at restore #", restoreCount, ":\n")
+ io.write("Reduced 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"]))
@@ -24,7 +25,8 @@ function sk_scrape_accumulate(t)
end
io.write("\n")
else
- clipstack = canvas:getClipStack()
+ -- clipstack = canvas:getClipStack()
+ clipstack = canvas:getReducedClipStack()
end
end
« 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