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

Side by Side Diff: dm/DM.cpp

Issue 1372783003: SkPDF: Implement drawImage*() properly (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-09-30 (Wednesday) 21:22:24 EDT Created 5 years, 2 months 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 | gm/repeated_bitmap.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 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 #include "CrashHandler.h" 8 #include "CrashHandler.h"
9 #include "DMJsonWriter.h" 9 #include "DMJsonWriter.h"
10 #include "DMSrcSink.h" 10 #include "DMSrcSink.h"
(...skipping 11 matching lines...) Expand all
22 #include "SkMD5.h" 22 #include "SkMD5.h"
23 #include "SkMutex.h" 23 #include "SkMutex.h"
24 #include "SkOSFile.h" 24 #include "SkOSFile.h"
25 #include "SkTHash.h" 25 #include "SkTHash.h"
26 #include "SkTaskGroup.h" 26 #include "SkTaskGroup.h"
27 #include "SkThreadUtils.h" 27 #include "SkThreadUtils.h"
28 #include "Test.h" 28 #include "Test.h"
29 #include "Timer.h" 29 #include "Timer.h"
30 #include "sk_tool_utils.h" 30 #include "sk_tool_utils.h"
31 31
32 #ifdef SK_PDF_IMAGE_STATS
33 extern void SkPDFImageDumpStats();
34 #endif
35
32 #ifdef SKIA_PNG_PREFIXED 36 #ifdef SKIA_PNG_PREFIXED
33 // this must proceed png.h 37 // this must proceed png.h
34 #include "pngprefix.h" 38 #include "pngprefix.h"
35 #endif 39 #endif
36 #include "png.h" 40 #include "png.h"
37 41
38 #include <stdlib.h> 42 #include <stdlib.h>
39 43
40 DEFINE_string(src, "tests gm skp image", "Source types to test."); 44 DEFINE_string(src, "tests gm skp image", "Source types to test.");
41 DEFINE_bool(nameByHash, false, 45 DEFINE_bool(nameByHash, false,
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 for (int i = 0; i < gFailures.count(); i++) { 1102 for (int i = 0; i < gFailures.count(); i++) {
1099 SkDebugf("\t%s\n", gFailures[i].c_str()); 1103 SkDebugf("\t%s\n", gFailures[i].c_str());
1100 } 1104 }
1101 SkDebugf("%d failures\n", gFailures.count()); 1105 SkDebugf("%d failures\n", gFailures.count());
1102 return 1; 1106 return 1;
1103 } 1107 }
1104 if (gPending > 0) { 1108 if (gPending > 0) {
1105 SkDebugf("Hrm, we didn't seem to run everything we intended to! Please file a bug.\n"); 1109 SkDebugf("Hrm, we didn't seem to run everything we intended to! Please file a bug.\n");
1106 return 1; 1110 return 1;
1107 } 1111 }
1112 #ifdef SK_PDF_IMAGE_STATS
1113 SkPDFImageDumpStats();
1114 #endif // SK_PDF_IMAGE_STATS
1108 return 0; 1115 return 0;
1109 } 1116 }
1110 1117
1111 #if !defined(SK_BUILD_FOR_IOS) 1118 #if !defined(SK_BUILD_FOR_IOS)
1112 int main(int argc, char** argv) { 1119 int main(int argc, char** argv) {
1113 SkCommandLineFlags::Parse(argc, argv); 1120 SkCommandLineFlags::Parse(argc, argv);
1114 return dm_main(); 1121 return dm_main();
1115 } 1122 }
1116 #endif 1123 #endif
OLDNEW
« no previous file with comments | « no previous file | gm/repeated_bitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698