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

Unified Diff: experimental/webtry/webtry.go

Issue 578013003: fixes to linux build for webtry (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix linux run; don't try to mix SK_DEBUG with a release build! Created 6 years, 3 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 | « experimental/webtry/templates/template.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/webtry/webtry.go
diff --git a/experimental/webtry/webtry.go b/experimental/webtry/webtry.go
index 0143feec80868d4aed60c7c5f53d12b7799f700f..fd512de9d88da1900079fda72cc34692a9ad842a 100644
--- a/experimental/webtry/webtry.go
+++ b/experimental/webtry/webtry.go
@@ -36,8 +36,8 @@ import (
)
const (
- RUN_GYP = `../../experimental/webtry/gyp_for_webtry %s`
- RUN_NINJA = `ninja -C ../../../inout/Release %s`
+ RUN_GYP = `../../experimental/webtry/gyp_for_webtry %s -Dskia_gpu=0`
+ RUN_NINJA = `ninja -C ../../../inout/Release %s`
DEFAULT_SAMPLE = `void draw(SkCanvas* canvas) {
SkPaint p;
@@ -344,7 +344,7 @@ type userCode struct {
Titlebar Titlebar
}
-// writeTemplate creates a given output file and writes the template
+// writeTemplate creates a given output file and writes the template
// result there.
func writeTemplate(filename string, t *template.Template, context interface{}) error {
f, err := os.Create(filename)
@@ -352,12 +352,12 @@ func writeTemplate(filename string, t *template.Template, context interface{}) e
return err
}
defer f.Close()
- return t.Execute( f, context )
+ return t.Execute(f, context)
}
// expandToFile expands the template and writes the result to the file.
func expandToFile(filename string, code string, t *template.Template) error {
- return writeTemplate( filename, t, userCode{Code: code, Titlebar: Titlebar{GitHash: gitHash, GitInfo: gitInfo}} )
+ return writeTemplate(filename, t, userCode{Code: code, Titlebar: Titlebar{GitHash: gitHash, GitInfo: gitInfo}})
}
// expandCode expands the template into a file and calculates the MD5 hash.
@@ -374,8 +374,8 @@ func expandCode(code string, source int) (string, error) {
}
// expandGyp produces the GYP file needed to build the code
-func expandGyp(hash string) (error) {
- return writeTemplate(fmt.Sprintf("../../../cache/%s.gyp", hash), gypTemplate, struct {Hash string}{hash} )
+func expandGyp(hash string) error {
+ return writeTemplate(fmt.Sprintf("../../../cache/%s.gyp", hash), gypTemplate, struct{ Hash string }{hash})
}
// response is serialized to JSON as a response to POSTs.
« no previous file with comments | « experimental/webtry/templates/template.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698