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

Side by Side Diff: dm/DM.cpp

Issue 650323004: Use MacOS's CoreGraphics PDF Rasterizer in DM (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698