aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/lua
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-26 17:50:08 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-02-26 17:50:08 +0000
commita47ac2bcc228981bd9f04508ad0894b61704800e (patch)
tree6a2a79485b810703924654dc2b1abfbb6670d7f9 /tools/lua
parent335619b26b07ef41c453fd6db80b5508a9e2a90b (diff)
Add getReducedClipStack to lua canvas
R=reed@google.com Author: bsalomon@google.com Review URL: https://codereview.chromium.org/180283004 git-svn-id: http://skia.googlecode.com/svn/trunk@13594 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools/lua')
-rw-r--r--tools/lua/dump_clipstack_at_restore.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/lua/dump_clipstack_at_restore.lua b/tools/lua/dump_clipstack_at_restore.lua
index 4691b5b250..eb5afb9bdb 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