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

Unified Diff: tools/lua/gradients.py

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 | « tools/lua/gradients.lua ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/lua/gradients.py
diff --git a/tools/lua/gradients.py b/tools/lua/gradients.py
index a2cf785cbb91e9f4ca85db4dfd27bb8bb6690ed2..1b7aa1ef63d1934be8d5434049dd6827c5b9f378 100755
--- a/tools/lua/gradients.py
+++ b/tools/lua/gradients.py
@@ -12,12 +12,12 @@ def create_database(inpath, outpath):
with sqlite3.connect(outpath) as conn:
c = conn.cursor();
c.execute('''CREATE TABLE IF NOT EXISTS gradients (
- ColorCount INTEGER,
- GradientType TEXT,
- TileMode TEXT,
- EvenlySpaced INTEGER,
- HardStops INTEGER,
- Positions TEXT
+ ColorCount INTEGER,
+ GradientType TEXT,
+ TileMode TEXT,
+ EvenlySpaced INTEGER,
+ HardStopCount INTEGER,
+ Positions TEXT
)''');
c.execute("DELETE FROM gradients");
« no previous file with comments | « tools/lua/gradients.lua ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698