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

Side by Side Diff: bench/benchmain.cpp

Issue 16703024: Fixes microbench format change caused by r9417. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 months 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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "BenchTimer.h" 10 #include "BenchTimer.h"
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 timerWall, truncatedTimerWall, timerCpu, 965 timerWall, truncatedTimerWall, timerCpu,
966 truncatedTimerCpu, 966 truncatedTimerCpu,
967 timerGpu && NULL != context); 967 timerGpu && NULL != context);
968 logger.logProgress(result); 968 logger.logProgress(result);
969 } 969 }
970 if (outDir.size() > 0 && kNonRendering_Backend != backend) { 970 if (outDir.size() > 0 && kNonRendering_Backend != backend) {
971 saveFile(bench->getName(), configName, outDir.c_str(), 971 saveFile(bench->getName(), configName, outDir.c_str(),
972 device->accessBitmap(false)); 972 device->accessBitmap(false));
973 } 973 }
974 } 974 }
975 if (loggedBenchStart) { 975 }
976 logger.logProgress(SkString("\n")); 976 if (loggedBenchStart) {
977 } 977 logger.logProgress(SkString("\n"));
978 } 978 }
979 } 979 }
980 #if SK_SUPPORT_GPU 980 #if SK_SUPPORT_GPU
981 #if GR_CACHE_STATS 981 #if GR_CACHE_STATS
982 for (int i = 0; i <= GrContextFactory::kLastGLContextType; ++i) { 982 for (int i = 0; i <= GrContextFactory::kLastGLContextType; ++i) {
983 GrContextFactory::GLContextType ctxType = (GrContextFactory::GLContextTy pe)i; 983 GrContextFactory::GLContextType ctxType = (GrContextFactory::GLContextTy pe)i;
984 GrContext* context = gContextFactory.get(ctxType); 984 GrContext* context = gContextFactory.get(ctxType);
985 if (NULL != context) { 985 if (NULL != context) {
986 SkDebugf("Cache Stats for %s context:\n", GrContextFactory::GLContex tTypeName(ctxType)); 986 SkDebugf("Cache Stats for %s context:\n", GrContextFactory::GLContex tTypeName(ctxType));
987 context->printCacheStats(); 987 context->printCacheStats();
988 SkDebugf("\n"); 988 SkDebugf("\n");
989 } 989 }
990 } 990 }
991 #endif 991 #endif
992 // Destroy the GrContext before the inst tracking printing at main() exit oc curs. 992 // Destroy the GrContext before the inst tracking printing at main() exit oc curs.
993 gContextFactory.destroyContexts(); 993 gContextFactory.destroyContexts();
994 #endif 994 #endif
995 for (size_t i = 0; i < SK_ARRAY_COUNT(gConfigs); ++i) { 995 for (size_t i = 0; i < SK_ARRAY_COUNT(gConfigs); ++i) {
996 SkDELETE(timers[i]); 996 SkDELETE(timers[i]);
997 } 997 }
998 998
999 return 0; 999 return 0;
1000 } 1000 }
1001 1001
1002 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 1002 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
1003 int main(int argc, char * const argv[]) { 1003 int main(int argc, char * const argv[]) {
1004 return tool_main(argc, (char**) argv); 1004 return tool_main(argc, (char**) argv);
1005 } 1005 }
1006 #endif 1006 #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