| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 "SkCommandLineFlags.h" | 8 #include "SkCommandLineFlags.h" |
| 9 #include "SkGraphics.h" | 9 #include "SkGraphics.h" |
| 10 #include "SkOSFile.h" | 10 #include "SkOSFile.h" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 } | 189 } |
| 190 SkString resourcePath = Test::GetResourcePath(); | 190 SkString resourcePath = Test::GetResourcePath(); |
| 191 if (!resourcePath.isEmpty()) { | 191 if (!resourcePath.isEmpty()) { |
| 192 header.appendf(" --resourcePath %s", resourcePath.c_str()); | 192 header.appendf(" --resourcePath %s", resourcePath.c_str()); |
| 193 } | 193 } |
| 194 #ifdef SK_DEBUG | 194 #ifdef SK_DEBUG |
| 195 header.append(" SK_DEBUG"); | 195 header.append(" SK_DEBUG"); |
| 196 #else | 196 #else |
| 197 header.append(" SK_RELEASE"); | 197 header.append(" SK_RELEASE"); |
| 198 #endif | 198 #endif |
| 199 #ifdef SK_SCALAR_IS_FIXED | |
| 200 header.append(" SK_SCALAR_IS_FIXED"); | |
| 201 #else | |
| 202 header.append(" SK_SCALAR_IS_FLOAT"); | |
| 203 #endif | |
| 204 header.appendf(" skia_arch_width=%d", (int)sizeof(void*) * 8); | 199 header.appendf(" skia_arch_width=%d", (int)sizeof(void*) * 8); |
| 205 SkDebugf("%s\n", header.c_str()); | 200 SkDebugf("%s\n", header.c_str()); |
| 206 } | 201 } |
| 207 | 202 |
| 208 DebugfReporter reporter(FLAGS_extendedTest, !FLAGS_single, FLAGS_verbose); | 203 DebugfReporter reporter(FLAGS_extendedTest, !FLAGS_single, FLAGS_verbose); |
| 209 Iter iter(&reporter); | 204 Iter iter(&reporter); |
| 210 | 205 |
| 211 // Count tests first. | 206 // Count tests first. |
| 212 int total = 0; | 207 int total = 0; |
| 213 int toRun = 0; | 208 int toRun = 0; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 GpuTest::DestroyContexts(); | 254 GpuTest::DestroyContexts(); |
| 260 | 255 |
| 261 return (failCount == 0) ? 0 : 1; | 256 return (failCount == 0) ? 0 : 1; |
| 262 } | 257 } |
| 263 | 258 |
| 264 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 259 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 265 int main(int argc, char * const argv[]) { | 260 int main(int argc, char * const argv[]) { |
| 266 return tool_main(argc, (char**) argv); | 261 return tool_main(argc, (char**) argv); |
| 267 } | 262 } |
| 268 #endif | 263 #endif |
| OLD | NEW |