| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 static int gGpuCacheSizeCount; | 62 static int gGpuCacheSizeCount; |
| 63 #else | 63 #else |
| 64 class GrContextFactory; | 64 class GrContextFactory; |
| 65 class GrContext; | 65 class GrContext; |
| 66 class GrSurface; | 66 class GrSurface; |
| 67 typedef int GLContextType; | 67 typedef int GLContextType; |
| 68 #endif | 68 #endif |
| 69 | 69 |
| 70 #define DEBUGFAIL_SEE_STDERR SkDEBUGFAIL("see stderr for message") | 70 #define DEBUGFAIL_SEE_STDERR SkDEBUGFAIL("see stderr for message") |
| 71 | 71 |
| 72 extern bool gSkSuppressFontCachePurgeSpew; | |
| 73 DECLARE_bool(useDocumentInsteadOfDevice); | 72 DECLARE_bool(useDocumentInsteadOfDevice); |
| 74 | 73 |
| 75 #ifdef SK_SUPPORT_PDF | 74 #ifdef SK_SUPPORT_PDF |
| 76 #include "SkPDFDevice.h" | 75 #include "SkPDFDevice.h" |
| 77 #include "SkPDFDocument.h" | 76 #include "SkPDFDocument.h" |
| 78 #endif | 77 #endif |
| 79 | 78 |
| 80 // Until we resolve http://code.google.com/p/skia/issues/detail?id=455 , | 79 // Until we resolve http://code.google.com/p/skia/issues/detail?id=455 , |
| 81 // stop writing out XPS-format image baselines in gm. | 80 // stop writing out XPS-format image baselines in gm. |
| 82 #undef SK_SUPPORT_XPS | 81 #undef SK_SUPPORT_XPS |
| (...skipping 2144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2227 SkCommandLineFlags::SetUsage(usage.c_str()); | 2226 SkCommandLineFlags::SetUsage(usage.c_str()); |
| 2228 SkCommandLineFlags::Parse(argc, argv); | 2227 SkCommandLineFlags::Parse(argc, argv); |
| 2229 | 2228 |
| 2230 #if SK_ENABLE_INST_COUNT | 2229 #if SK_ENABLE_INST_COUNT |
| 2231 if (FLAGS_leaks) { | 2230 if (FLAGS_leaks) { |
| 2232 gPrintInstCount = true; | 2231 gPrintInstCount = true; |
| 2233 } | 2232 } |
| 2234 #endif | 2233 #endif |
| 2235 | 2234 |
| 2236 SkGraphics::Init(); | 2235 SkGraphics::Init(); |
| 2237 // we don't need to see this during a run | |
| 2238 gSkSuppressFontCachePurgeSpew = true; | |
| 2239 | 2236 |
| 2240 setSystemPreferences(); | 2237 setSystemPreferences(); |
| 2241 GMMain gmmain; | 2238 GMMain gmmain; |
| 2242 | 2239 |
| 2243 SkTDArray<size_t> configs; | 2240 SkTDArray<size_t> configs; |
| 2244 | 2241 |
| 2245 int moduloRemainder = -1; | 2242 int moduloRemainder = -1; |
| 2246 int moduloDivisor = -1; | 2243 int moduloDivisor = -1; |
| 2247 SkTDArray<const PDFRasterizerData*> pdfRasterizers; | 2244 SkTDArray<const PDFRasterizerData*> pdfRasterizers; |
| 2248 SkTDArray<SkScalar> tileGridReplayScales; | 2245 SkTDArray<SkScalar> tileGridReplayScales; |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2455 if (FLAGS_forceBWtext) { | 2452 if (FLAGS_forceBWtext) { |
| 2456 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); | 2453 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); |
| 2457 } | 2454 } |
| 2458 } | 2455 } |
| 2459 | 2456 |
| 2460 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 2457 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 2461 int main(int argc, char * const argv[]) { | 2458 int main(int argc, char * const argv[]) { |
| 2462 return tool_main(argc, (char**) argv); | 2459 return tool_main(argc, (char**) argv); |
| 2463 } | 2460 } |
| 2464 #endif | 2461 #endif |
| OLD | NEW |