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

Side by Side Diff: tools/render_pictures_main.cpp

Issue 274463004: Revert of extract some common code from PictureRenderer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 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 | « tools/image_expectations.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"
11 #include "SkDevice.h" 11 #include "SkDevice.h"
12 #include "SkCommandLineFlags.h" 12 #include "SkCommandLineFlags.h"
13 #include "SkGraphics.h" 13 #include "SkGraphics.h"
14 #include "SkImageDecoder.h" 14 #include "SkImageDecoder.h"
15 #include "SkImageEncoder.h" 15 #include "SkImageEncoder.h"
16 #include "SkMath.h" 16 #include "SkMath.h"
17 #include "SkOSFile.h" 17 #include "SkOSFile.h"
18 #include "SkPicture.h" 18 #include "SkPicture.h"
19 #include "SkPictureRecorder.h" 19 #include "SkPictureRecorder.h"
20 #include "SkStream.h" 20 #include "SkStream.h"
21 #include "SkString.h" 21 #include "SkString.h"
22
23 #include "image_expectations.h"
24 #include "PictureRenderer.h" 22 #include "PictureRenderer.h"
25 #include "PictureRenderingFlags.h" 23 #include "PictureRenderingFlags.h"
26 #include "picture_utils.h" 24 #include "picture_utils.h"
27 25
28 // Flags used by this file, alphabetically: 26 // Flags used by this file, alphabetically:
29 DEFINE_int32(clone, 0, "Clone the picture n times before rendering."); 27 DEFINE_int32(clone, 0, "Clone the picture n times before rendering.");
30 DECLARE_bool(deferImageDecoding); 28 DECLARE_bool(deferImageDecoding);
31 DEFINE_int32(maxComponentDiff, 256, "Maximum diff on a component, 0 - 256. Compo nents that differ " 29 DEFINE_int32(maxComponentDiff, 256, "Maximum diff on a component, 0 - 256. Compo nents that differ "
32 "by more than this amount are considered errors, though all diffs a re reported. " 30 "by more than this amount are considered errors, though all diffs a re reported. "
33 "Requires --validate."); 31 "Requires --validate.");
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 jsonSummary.writeToFile(FLAGS_writeJsonSummaryPath[0]); 476 jsonSummary.writeToFile(FLAGS_writeJsonSummaryPath[0]);
479 } 477 }
480 return 0; 478 return 0;
481 } 479 }
482 480
483 #if !defined SK_BUILD_FOR_IOS 481 #if !defined SK_BUILD_FOR_IOS
484 int main(int argc, char * const argv[]) { 482 int main(int argc, char * const argv[]) {
485 return tool_main(argc, (char**) argv); 483 return tool_main(argc, (char**) argv);
486 } 484 }
487 #endif 485 #endif
OLDNEW
« no previous file with comments | « tools/image_expectations.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698