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 /* | 8 /* |
9 * Code for the "gm" (Golden Master) rendering comparison tool. | 9 * Code for the "gm" (Golden Master) rendering comparison tool. |
10 * | 10 * |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "Resources.h" | 22 #include "Resources.h" |
23 #include "SamplePipeControllers.h" | 23 #include "SamplePipeControllers.h" |
24 #include "SkBitmap.h" | 24 #include "SkBitmap.h" |
25 #include "SkColorPriv.h" | 25 #include "SkColorPriv.h" |
26 #include "SkCommandLineFlags.h" | 26 #include "SkCommandLineFlags.h" |
27 #include "SkData.h" | 27 #include "SkData.h" |
28 #include "SkDeferredCanvas.h" | 28 #include "SkDeferredCanvas.h" |
29 #include "SkDevice.h" | 29 #include "SkDevice.h" |
30 #include "SkDocument.h" | 30 #include "SkDocument.h" |
31 #include "SkDrawFilter.h" | 31 #include "SkDrawFilter.h" |
32 #include "SkForceLinking.h" | |
33 #include "SkGPipe.h" | 32 #include "SkGPipe.h" |
34 #include "SkGraphics.h" | 33 #include "SkGraphics.h" |
35 #include "SkImageDecoder.h" | 34 #include "SkImageDecoder.h" |
36 #include "SkImageEncoder.h" | 35 #include "SkImageEncoder.h" |
37 #include "SkJSONCPP.h" | 36 #include "SkJSONCPP.h" |
38 #include "SkOSFile.h" | 37 #include "SkOSFile.h" |
39 #include "SkPDFRasterizer.h" | 38 #include "SkPDFRasterizer.h" |
40 #include "SkPicture.h" | 39 #include "SkPicture.h" |
41 #include "SkPictureRecorder.h" | 40 #include "SkPictureRecorder.h" |
42 #include "SkRefCnt.h" | 41 #include "SkRefCnt.h" |
43 #include "SkScalar.h" | 42 #include "SkScalar.h" |
44 #include "SkStream.h" | 43 #include "SkStream.h" |
45 #include "SkString.h" | 44 #include "SkString.h" |
46 #include "SkSurface.h" | 45 #include "SkSurface.h" |
47 #include "SkTArray.h" | 46 #include "SkTArray.h" |
48 #include "SkTDict.h" | 47 #include "SkTDict.h" |
49 | 48 |
50 #ifdef SK_DEBUG | 49 #ifdef SK_DEBUG |
51 static const bool kDebugOnly = true; | 50 static const bool kDebugOnly = true; |
52 #define GR_DUMP_FONT_CACHE 0 | 51 #define GR_DUMP_FONT_CACHE 0 |
53 #else | 52 #else |
54 static const bool kDebugOnly = false; | 53 static const bool kDebugOnly = false; |
55 #endif | 54 #endif |
56 | 55 |
57 __SK_FORCE_IMAGE_DECODER_LINKING; | |
58 | |
59 #if SK_SUPPORT_GPU | 56 #if SK_SUPPORT_GPU |
60 #include "GrContextFactory.h" | 57 #include "GrContextFactory.h" |
61 #include "SkGpuDevice.h" | 58 #include "SkGpuDevice.h" |
62 typedef GrContextFactory::GLContextType GLContextType; | 59 typedef GrContextFactory::GLContextType GLContextType; |
63 #define DEFAULT_CACHE_VALUE -1 | 60 #define DEFAULT_CACHE_VALUE -1 |
64 static int gGpuCacheSizeBytes; | 61 static int gGpuCacheSizeBytes; |
65 static int gGpuCacheSizeCount; | 62 static int gGpuCacheSizeCount; |
66 #else | 63 #else |
67 class GrContextFactory; | 64 class GrContextFactory; |
68 class GrContext; | 65 class GrContext; |
(...skipping 2414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2483 if (FLAGS_forceBWtext) { | 2480 if (FLAGS_forceBWtext) { |
2484 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); | 2481 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); |
2485 } | 2482 } |
2486 } | 2483 } |
2487 | 2484 |
2488 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 2485 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
2489 int main(int argc, char * const argv[]) { | 2486 int main(int argc, char * const argv[]) { |
2490 return tool_main(argc, (char**) argv); | 2487 return tool_main(argc, (char**) argv); |
2491 } | 2488 } |
2492 #endif | 2489 #endif |
OLD | NEW |