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

Side by Side Diff: tools/skpmaker.cpp

Issue 1313203003: Remove include of stdlib.h from SkTypes.h. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up qsort conversion. Created 5 years, 3 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/skpdiff/SkDifferentPixelsMetric_cpu.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 2014 Google Inc. 2 * Copyright 2014 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 * Simple tool to generate SKP files for testing. 7 * Simple tool to generate SKP files for testing.
8 */ 8 */
9 9
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
11 #include "SkColor.h" 11 #include "SkColor.h"
12 #include "SkCommandLineFlags.h" 12 #include "SkCommandLineFlags.h"
13 #include "SkPaint.h" 13 #include "SkPaint.h"
14 #include "SkPicture.h" 14 #include "SkPicture.h"
15 #include "SkPictureRecorder.h" 15 #include "SkPictureRecorder.h"
16 #include "SkScalar.h" 16 #include "SkScalar.h"
17 #include "SkStream.h" 17 #include "SkStream.h"
18 18
19 #include <stdlib.h>
20
19 // Flags used by this file, alphabetically: 21 // Flags used by this file, alphabetically:
20 DEFINE_int32(blue, 128, "Value of blue color channel in image, 0-255."); 22 DEFINE_int32(blue, 128, "Value of blue color channel in image, 0-255.");
21 DEFINE_int32(border, 4, "Width of the black border around the image."); 23 DEFINE_int32(border, 4, "Width of the black border around the image.");
22 DEFINE_int32(green, 128, "Value of green color channel in image, 0-255."); 24 DEFINE_int32(green, 128, "Value of green color channel in image, 0-255.");
23 DEFINE_int32(height, 200, "Height of canvas to create."); 25 DEFINE_int32(height, 200, "Height of canvas to create.");
24 DEFINE_int32(red, 128, "Value of red color channel in image, 0-255."); 26 DEFINE_int32(red, 128, "Value of red color channel in image, 0-255.");
25 DEFINE_int32(width, 300, "Width of canvas to create."); 27 DEFINE_int32(width, 300, "Width of canvas to create.");
26 DEFINE_string(writePath, "", "Filepath to write the SKP into."); 28 DEFINE_string(writePath, "", "Filepath to write the SKP into.");
27 29
28 // Create a 'width' by 'height' skp with a 'border'-wide black border around 30 // Create a 'width' by 'height' skp with a 'border'-wide black border around
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 SkIntToScalar(FLAGS_border), 83 SkIntToScalar(FLAGS_border),
82 color, FLAGS_writePath[0]); 84 color, FLAGS_writePath[0]);
83 return 0; 85 return 0;
84 } 86 }
85 87
86 #if !defined SK_BUILD_FOR_IOS 88 #if !defined SK_BUILD_FOR_IOS
87 int main(int argc, char * const argv[]) { 89 int main(int argc, char * const argv[]) {
88 return tool_main(argc, (char**) argv); 90 return tool_main(argc, (char**) argv);
89 } 91 }
90 #endif 92 #endif
OLDNEW
« no previous file with comments | « tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698