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

Side by Side Diff: dm/DM.cpp

Issue 1425843003: Add missing include for sleep(). (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Not on windows Created 5 years, 1 month 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 | « no previous file | 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 2013 Google Inc. 2 * Copyright 2013 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 "CrashHandler.h" 8 #include "CrashHandler.h"
9 #include "DMJsonWriter.h" 9 #include "DMJsonWriter.h"
10 #include "DMSrcSink.h" 10 #include "DMSrcSink.h"
(...skipping 23 matching lines...) Expand all
34 #endif 34 #endif
35 35
36 #ifdef SKIA_PNG_PREFIXED 36 #ifdef SKIA_PNG_PREFIXED
37 // this must proceed png.h 37 // this must proceed png.h
38 #include "pngprefix.h" 38 #include "pngprefix.h"
39 #endif 39 #endif
40 #include "png.h" 40 #include "png.h"
41 41
42 #include <stdlib.h> 42 #include <stdlib.h>
43 43
44 #ifndef SK_BUILD_FOR_WIN32
45 #include <unistd.h>
46 #endif
47
44 DEFINE_string(src, "tests gm skp image", "Source types to test."); 48 DEFINE_string(src, "tests gm skp image", "Source types to test.");
45 DEFINE_bool(nameByHash, false, 49 DEFINE_bool(nameByHash, false,
46 "If true, write to FLAGS_writePath[0]/<hash>.png instead of " 50 "If true, write to FLAGS_writePath[0]/<hash>.png instead of "
47 "to FLAGS_writePath[0]/<config>/<sourceType>/<sourceOptions>/<name>. png"); 51 "to FLAGS_writePath[0]/<config>/<sourceType>/<sourceOptions>/<name>. png");
48 DEFINE_bool2(pathOpsExtended, x, false, "Run extended pathOps tests."); 52 DEFINE_bool2(pathOpsExtended, x, false, "Run extended pathOps tests.");
49 DEFINE_string(matrix, "1 0 0 1", 53 DEFINE_string(matrix, "1 0 0 1",
50 "2x2 scale+skew matrix to apply or upright when using " 54 "2x2 scale+skew matrix to apply or upright when using "
51 "'matrix' or 'upright' in config."); 55 "'matrix' or 'upright' in config.");
52 DEFINE_bool(gpu_threading, false, "Allow GPU work to run on multiple threads?"); 56 DEFINE_bool(gpu_threading, false, "Allow GPU work to run on multiple threads?");
53 57
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1161 #endif // SK_PDF_IMAGE_STATS 1165 #endif // SK_PDF_IMAGE_STATS
1162 return 0; 1166 return 0;
1163 } 1167 }
1164 1168
1165 #if !defined(SK_BUILD_FOR_IOS) 1169 #if !defined(SK_BUILD_FOR_IOS)
1166 int main(int argc, char** argv) { 1170 int main(int argc, char** argv) {
1167 SkCommandLineFlags::Parse(argc, argv); 1171 SkCommandLineFlags::Parse(argc, argv);
1168 return dm_main(); 1172 return dm_main();
1169 } 1173 }
1170 #endif 1174 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698