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

Side by Side Diff: tests/skia_test.cpp

Issue 76143003: GpuTest::GetContext() doesn't exist. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« 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 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
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
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