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

Side by Side Diff: tools/render_pictures_main.cpp

Issue 227603006: hack Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: yet more hackage Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « tools/bench_pictures_main.cpp ('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 2012 Google Inc. 2 * Copyright 2012 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 7
8 #include "LazyDecodeBitmap.h" 8 #include "LazyDecodeBitmap.h"
9 #include "CopyTilesRenderer.h" 9 #include "CopyTilesRenderer.h"
10 #include "SkBitmap.h" 10 #include "SkBitmap.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 inputPath.c_str()); 196 inputPath.c_str());
197 197
198 renderer.init(picture, &outputDirString, &inputFilename, FLAGS_writeChecksum BasedFilenames); 198 renderer.init(picture, &outputDirString, &inputFilename, FLAGS_writeChecksum BasedFilenames);
199 199
200 if (FLAGS_preprocess) { 200 if (FLAGS_preprocess) {
201 if (NULL != renderer.getCanvas()) { 201 if (NULL != renderer.getCanvas()) {
202 renderer.getCanvas()->EXPERIMENTAL_optimize(renderer.getPicture()); 202 renderer.getCanvas()->EXPERIMENTAL_optimize(renderer.getPicture());
203 } 203 }
204 } 204 }
205 205
206 renderer.setup(); 206 renderer.setup1();
207 207
208 bool success = renderer.render(out); 208 bool success = renderer.render(out);
209 if (!success) { 209 if (!success) {
210 SkDebugf("Failed to render %s\n", inputFilename.c_str()); 210 SkDebugf("Failed to render %s\n", inputFilename.c_str());
211 } 211 }
212 212
213 renderer.end(); 213 renderer.end();
214 214
215 SkDELETE(picture); 215 SkDELETE(picture);
216 return success; 216 return success;
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 jsonSummary.writeToFile(FLAGS_writeJsonSummaryPath[0]); 494 jsonSummary.writeToFile(FLAGS_writeJsonSummaryPath[0]);
495 } 495 }
496 return 0; 496 return 0;
497 } 497 }
498 498
499 #if !defined SK_BUILD_FOR_IOS 499 #if !defined SK_BUILD_FOR_IOS
500 int main(int argc, char * const argv[]) { 500 int main(int argc, char * const argv[]) {
501 return tool_main(argc, (char**) argv); 501 return tool_main(argc, (char**) argv);
502 } 502 }
503 #endif 503 #endif
OLDNEW
« no previous file with comments | « tools/bench_pictures_main.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698