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

Side by Side Diff: gm/gmmain.cpp

Issue 83863002: Add JSON output option to bench. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: %040s is not the same as %40s, at least on Mac. Created 7 years 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
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 /* 8 /*
9 * Code for the "gm" (Golden Master) rendering comparison tool. 9 * Code for the "gm" (Golden Master) rendering comparison tool.
10 * 10 *
(...skipping 12 matching lines...) Expand all
23 #include "SkData.h" 23 #include "SkData.h"
24 #include "SkDeferredCanvas.h" 24 #include "SkDeferredCanvas.h"
25 #include "SkDevice.h" 25 #include "SkDevice.h"
26 #include "SkDocument.h" 26 #include "SkDocument.h"
27 #include "SkDrawFilter.h" 27 #include "SkDrawFilter.h"
28 #include "SkForceLinking.h" 28 #include "SkForceLinking.h"
29 #include "SkGPipe.h" 29 #include "SkGPipe.h"
30 #include "SkGraphics.h" 30 #include "SkGraphics.h"
31 #include "SkImageDecoder.h" 31 #include "SkImageDecoder.h"
32 #include "SkImageEncoder.h" 32 #include "SkImageEncoder.h"
33 #include "SkJSONCPP.h"
33 #include "SkOSFile.h" 34 #include "SkOSFile.h"
34 #include "SkPDFRasterizer.h" 35 #include "SkPDFRasterizer.h"
35 #include "SkPicture.h" 36 #include "SkPicture.h"
36 #include "SkRefCnt.h" 37 #include "SkRefCnt.h"
37 #include "SkScalar.h" 38 #include "SkScalar.h"
38 #include "SkStream.h" 39 #include "SkStream.h"
39 #include "SkString.h" 40 #include "SkString.h"
40 #include "SkTArray.h" 41 #include "SkTArray.h"
41 #include "SkTDict.h" 42 #include "SkTDict.h"
42 #include "SkTileGridPicture.h" 43 #include "SkTileGridPicture.h"
43 #include "SamplePipeControllers.h" 44 #include "SamplePipeControllers.h"
44 45
45 #ifdef SK_DEBUG 46 #ifdef SK_DEBUG
46 static const bool kDebugOnly = true; 47 static const bool kDebugOnly = true;
47 #else 48 #else
48 static const bool kDebugOnly = false; 49 static const bool kDebugOnly = false;
49 #endif 50 #endif
50 51
51 __SK_FORCE_IMAGE_DECODER_LINKING; 52 __SK_FORCE_IMAGE_DECODER_LINKING;
52 53
53 #ifdef SK_BUILD_FOR_WIN
54 // json includes xlocale which generates warning 4530 because we're compilin g without
55 // exceptions; see https://code.google.com/p/skia/issues/detail?id=1067
56 #pragma warning(push)
57 #pragma warning(disable : 4530)
58 #endif
59 #include "json/value.h"
60 #ifdef SK_BUILD_FOR_WIN
61 #pragma warning(pop)
62 #endif
63
64 #if SK_SUPPORT_GPU 54 #if SK_SUPPORT_GPU
65 #include "GrContextFactory.h" 55 #include "GrContextFactory.h"
66 #include "SkGpuDevice.h" 56 #include "SkGpuDevice.h"
67 typedef GrContextFactory::GLContextType GLContextType; 57 typedef GrContextFactory::GLContextType GLContextType;
68 #define DEFAULT_CACHE_VALUE -1 58 #define DEFAULT_CACHE_VALUE -1
69 static int gGpuCacheSizeBytes; 59 static int gGpuCacheSizeBytes;
70 static int gGpuCacheSizeCount; 60 static int gGpuCacheSizeCount;
71 #else 61 #else
72 class GrContextFactory; 62 class GrContextFactory;
73 class GrContext; 63 class GrContext;
(...skipping 2312 matching lines...) Expand 10 before | Expand all | Expand 10 after
2386 if (FLAGS_forceBWtext) { 2376 if (FLAGS_forceBWtext) {
2387 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); 2377 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref();
2388 } 2378 }
2389 } 2379 }
2390 2380
2391 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 2381 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
2392 int main(int argc, char * const argv[]) { 2382 int main(int argc, char * const argv[]) {
2393 return tool_main(argc, (char**) argv); 2383 return tool_main(argc, (char**) argv);
2394 } 2384 }
2395 #endif 2385 #endif
OLDNEW
« bench/ResultsWriter.h ('K') | « gm/gm_expectations.h ('k') | gyp/bench.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698