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

Unified Diff: tools/lua/gradients.lua

Issue 2103973002: Changes to Lua gradient scraping (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Count number of hard stops Created 4 years, 5 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') | tools/lua/gradients.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/lua/gradients.lua
diff --git a/tools/lua/gradients.lua b/tools/lua/gradients.lua
index 628632817f9c2dc0c236ebe243058b0261b8af61..ab205eec9d75789f4cdaf9992c0c54754c986901 100644
--- a/tools/lua/gradients.lua
+++ b/tools/lua/gradients.lua
@@ -13,11 +13,11 @@ function sk_scrape_accumulate(t)
local g = s:asAGradient()
if g then
gradients[i] = {}
- gradients[i].colorCount = g.colorCount
- gradients[i].type = g.type
- gradients[i].tile = g.tile
- gradients[i].isEvenlySpaced = g.isEvenlySpaced
- gradients[i].containsHardStops = g.containsHardStops
+ gradients[i].colorCount = g.colorCount
+ gradients[i].type = g.type
+ gradients[i].tile = g.tile
+ gradients[i].isEvenlySpaced = g.isEvenlySpaced
+ gradients[i].numHardStops = g.numHardStops
gradients[i].positions = {}
for j = 1, g.colorCount, 1 do
@@ -45,7 +45,7 @@ function sk_scrape_summarize()
v.type,
v.tile,
tonumber(v.isEvenlySpaced and 1 or 0),
- tonumber(v.containsHardStops and 1 or 0),
+ v.numHardStops,
pos))
end
end
« no previous file with comments | « src/utils/SkLua.cpp ('k') | tools/lua/gradients.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698