| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 | 248 |
| 249 // Block until threaded tests finish. | 249 // Block until threaded tests finish. |
| 250 threadpool.wait(); | 250 threadpool.wait(); |
| 251 | 251 |
| 252 SkDebugf("Finished %d tests, %d failures, %d skipped.\n", | 252 SkDebugf("Finished %d tests, %d failures, %d skipped.\n", |
| 253 toRun, failCount, skipCount); | 253 toRun, failCount, skipCount); |
| 254 const int testCount = reporter.countTests(); | 254 const int testCount = reporter.countTests(); |
| 255 if (FLAGS_verbose && testCount > 0) { | 255 if (FLAGS_verbose && testCount > 0) { |
| 256 SkDebugf("Ran %d Internal tests.\n", testCount); | 256 SkDebugf("Ran %d Internal tests.\n", testCount); |
| 257 } | 257 } |
| 258 #if SK_SUPPORT_GPU | |
| 259 | |
| 260 #if GR_CACHE_STATS | |
| 261 GrContext *gr = GpuTest::GetContext(); | |
| 262 | |
| 263 gr->printCacheStats(); | |
| 264 #endif | |
| 265 | |
| 266 #endif | |
| 267 | |
| 268 SkGraphics::Term(); | 258 SkGraphics::Term(); |
| 269 GpuTest::DestroyContexts(); | 259 GpuTest::DestroyContexts(); |
| 270 | 260 |
| 271 return (failCount == 0) ? 0 : 1; | 261 return (failCount == 0) ? 0 : 1; |
| 272 } | 262 } |
| 273 | 263 |
| 274 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 264 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 275 int main(int argc, char * const argv[]) { | 265 int main(int argc, char * const argv[]) { |
| 276 return tool_main(argc, (char**) argv); | 266 return tool_main(argc, (char**) argv); |
| 277 } | 267 } |
| 278 #endif | 268 #endif |
| OLD | NEW |