| OLD | NEW |
| 1 // Main binary for DM. | 1 // Main binary for DM. |
| 2 // For a high-level overview, please see dm/README. | 2 // For a high-level overview, please see dm/README. |
| 3 | 3 |
| 4 #include "CrashHandler.h" | 4 #include "CrashHandler.h" |
| 5 #include "LazyDecodeBitmap.h" | 5 #include "LazyDecodeBitmap.h" |
| 6 #include "SkCommonFlags.h" | 6 #include "SkCommonFlags.h" |
| 7 #include "SkForceLinking.h" | 7 #include "SkForceLinking.h" |
| 8 #include "SkGraphics.h" | 8 #include "SkGraphics.h" |
| 9 #include "SkOSFile.h" | 9 #include "SkOSFile.h" |
| 10 #include "SkPicture.h" | 10 #include "SkPicture.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "DMReporter.h" | 22 #include "DMReporter.h" |
| 23 #include "DMSKPTask.h" | 23 #include "DMSKPTask.h" |
| 24 #include "DMTask.h" | 24 #include "DMTask.h" |
| 25 #include "DMTaskRunner.h" | 25 #include "DMTaskRunner.h" |
| 26 #include "DMTestTask.h" | 26 #include "DMTestTask.h" |
| 27 #include "DMWriteTask.h" | 27 #include "DMWriteTask.h" |
| 28 | 28 |
| 29 #ifdef SK_BUILD_POPPLER | 29 #ifdef SK_BUILD_POPPLER |
| 30 # include "SkPDFRasterizer.h" | 30 # include "SkPDFRasterizer.h" |
| 31 # define RASTERIZE_PDF_PROC SkPopplerRasterizePDF | 31 # define RASTERIZE_PDF_PROC SkPopplerRasterizePDF |
| 32 #elif defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) |
| 33 # include "SkCGUtils.h" |
| 34 # define RASTERIZE_PDF_PROC SkPDFDocumentToBitmap |
| 32 #else | 35 #else |
| 33 # define RASTERIZE_PDF_PROC NULL | 36 # define RASTERIZE_PDF_PROC NULL |
| 34 #endif | 37 #endif |
| 35 | 38 |
| 36 #include <ctype.h> | 39 #include <ctype.h> |
| 37 | 40 |
| 38 using skiagm::GM; | 41 using skiagm::GM; |
| 39 using skiagm::GMRegistry; | 42 using skiagm::GMRegistry; |
| 40 using skiatest::Test; | 43 using skiatest::Test; |
| 41 using skiatest::TestRegistry; | 44 using skiatest::TestRegistry; |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 report_failures(failures); | 243 report_failures(failures); |
| 241 return failures.count() > 0; | 244 return failures.count() > 0; |
| 242 } | 245 } |
| 243 | 246 |
| 244 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 247 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 245 int main(int argc, char** argv) { | 248 int main(int argc, char** argv) { |
| 246 SkCommandLineFlags::Parse(argc, argv); | 249 SkCommandLineFlags::Parse(argc, argv); |
| 247 return dm_main(); | 250 return dm_main(); |
| 248 } | 251 } |
| 249 #endif | 252 #endif |
| OLD | NEW |