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

Side by Side Diff: experimental/fiddle/fiddler.go

Issue 1834993003: experimental/fiddle: update to work again (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « experimental/fiddle/fiddle_test ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 package main 7 package main
8 8
9 // Example use: 9 // Example use:
10 // git clone https://skia.googlesource.com/skia.git 10 // git clone https://skia.googlesource.com/skia.git
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 }() 143 }()
144 if os.Args[2] == "-" { 144 if os.Args[2] == "-" {
145 if err := fiddler(skiaSrc, os.Stdin, os.Stdout, tempDir) ; err != nil { 145 if err := fiddler(skiaSrc, os.Stdin, os.Stdout, tempDir) ; err != nil {
146 glog.Fatal(err) 146 glog.Fatal(err)
147 } 147 }
148 } else { 148 } else {
149 inputFile, err := os.Open(os.Args[2]) 149 inputFile, err := os.Open(os.Args[2])
150 if err != nil { 150 if err != nil {
151 glog.Fatalf("unable to open \"%s\": %v", os.Args [2], err) 151 glog.Fatalf("unable to open \"%s\": %v", os.Args [2], err)
152 } 152 }
153 » » » util.Close(inputFile) 153 » » » defer util.Close(inputFile)
154 if err = fiddler(skiaSrc, inputFile, os.Stdout, tempDir) ; err != nil { 154 if err = fiddler(skiaSrc, inputFile, os.Stdout, tempDir) ; err != nil {
155 glog.Fatal(err) 155 glog.Fatal(err)
156 } 156 }
157 } 157 }
158 } 158 }
159 } 159 }
OLDNEW
« no previous file with comments | « experimental/fiddle/fiddle_test ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698