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

Side by Side Diff: tools/render_pictures_main.cpp

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

Powered by Google App Engine
This is Rietveld 408576698