| 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 16 matching lines...) Expand all Loading... |
| 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 "SkJSONCPP.h" |
| 34 #include "SkOSFile.h" | 34 #include "SkOSFile.h" |
| 35 #include "SkPDFRasterizer.h" | 35 #include "SkPDFRasterizer.h" |
| 36 #include "SkPicture.h" | 36 #include "SkPicture.h" |
| 37 #include "SkQuadTreePicture.h" | 37 #include "SkPictureRecorder.h" |
| 38 #include "SkRefCnt.h" | 38 #include "SkRefCnt.h" |
| 39 #include "SkRTreePicture.h" | |
| 40 #include "SkScalar.h" | 39 #include "SkScalar.h" |
| 41 #include "SkStream.h" | 40 #include "SkStream.h" |
| 42 #include "SkString.h" | 41 #include "SkString.h" |
| 43 #include "SkSurface.h" | 42 #include "SkSurface.h" |
| 44 #include "SkTArray.h" | 43 #include "SkTArray.h" |
| 45 #include "SkTDict.h" | 44 #include "SkTDict.h" |
| 46 #include "SkTileGridPicture.h" | |
| 47 #include "SamplePipeControllers.h" | 45 #include "SamplePipeControllers.h" |
| 48 | 46 |
| 49 #ifdef SK_DEBUG | 47 #ifdef SK_DEBUG |
| 50 static const bool kDebugOnly = true; | 48 static const bool kDebugOnly = true; |
| 51 #define GR_DUMP_FONT_CACHE 0 | 49 #define GR_DUMP_FONT_CACHE 0 |
| 52 #else | 50 #else |
| 53 static const bool kDebugOnly = false; | 51 static const bool kDebugOnly = false; |
| 54 #endif | 52 #endif |
| 55 | 53 |
| 56 __SK_FORCE_IMAGE_DECODER_LINKING; | 54 __SK_FORCE_IMAGE_DECODER_LINKING; |
| (...skipping 2400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2457 if (FLAGS_forceBWtext) { | 2455 if (FLAGS_forceBWtext) { |
| 2458 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); | 2456 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); |
| 2459 } | 2457 } |
| 2460 } | 2458 } |
| 2461 | 2459 |
| 2462 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 2460 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 2463 int main(int argc, char * const argv[]) { | 2461 int main(int argc, char * const argv[]) { |
| 2464 return tool_main(argc, (char**) argv); | 2462 return tool_main(argc, (char**) argv); |
| 2465 } | 2463 } |
| 2466 #endif | 2464 #endif |
| OLD | NEW |