OLD | NEW |
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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 picture = clone; | 192 picture = clone; |
193 } | 193 } |
194 | 194 |
195 SkDebugf("drawing... [%i %i] %s\n", picture->width(), picture->height(), | 195 SkDebugf("drawing... [%i %i] %s\n", picture->width(), picture->height(), |
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(picture); | 202 renderer.getCanvas()->EXPERIMENTAL_optimize(renderer.getPicture()); |
203 } | 203 } |
204 } | 204 } |
205 | 205 |
206 renderer.setup(); | 206 renderer.setup(); |
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 |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |