Chromium Code Reviews| 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 #ifdef SK_DEBUG | 189 #ifdef SK_DEBUG |
| 190 header.append(" SK_DEBUG"); | 190 header.append(" SK_DEBUG"); |
| 191 #else | 191 #else |
| 192 header.append(" SK_RELEASE"); | 192 header.append(" SK_RELEASE"); |
| 193 #endif | 193 #endif |
| 194 #ifdef SK_SCALAR_IS_FIXED | 194 #ifdef SK_SCALAR_IS_FIXED |
| 195 header.append(" SK_SCALAR_IS_FIXED"); | 195 header.append(" SK_SCALAR_IS_FIXED"); |
| 196 #else | 196 #else |
| 197 header.append(" SK_SCALAR_IS_FLOAT"); | 197 header.append(" SK_SCALAR_IS_FLOAT"); |
| 198 #endif | 198 #endif |
| 199 header.appendf(" skia_arch_width=%d", (int)sizeof(void*) * 8); | |
|
bungeman-skia
2013/08/29 20:07:22
8? Not CHAR_BIT (its in limits.h)?
| |
| 199 SkDebugf("%s\n", header.c_str()); | 200 SkDebugf("%s\n", header.c_str()); |
| 200 } | 201 } |
| 201 | 202 |
| 202 DebugfReporter reporter(FLAGS_extendedTest, !FLAGS_single, FLAGS_verbose); | 203 DebugfReporter reporter(FLAGS_extendedTest, !FLAGS_single, FLAGS_verbose); |
| 203 Iter iter(&reporter); | 204 Iter iter(&reporter); |
| 204 | 205 |
| 205 // Count tests first. | 206 // Count tests first. |
| 206 int total = 0; | 207 int total = 0; |
| 207 int toRun = 0; | 208 int toRun = 0; |
| 208 Test* test; | 209 Test* test; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 268 GpuTest::DestroyContexts(); | 269 GpuTest::DestroyContexts(); |
| 269 | 270 |
| 270 return (failCount == 0) ? 0 : 1; | 271 return (failCount == 0) ? 0 : 1; |
| 271 } | 272 } |
| 272 | 273 |
| 273 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 274 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 274 int main(int argc, char * const argv[]) { | 275 int main(int argc, char * const argv[]) { |
| 275 return tool_main(argc, (char**) argv); | 276 return tool_main(argc, (char**) argv); |
| 276 } | 277 } |
| 277 #endif | 278 #endif |
| OLD | NEW |