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

Side by Side Diff: dm/DM.cpp

Issue 234243002: Revert of Rename kPMColor_SkColorType to kN32_SkColorType. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 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 | « debugger/QT/SkImageWidget.cpp ('k') | dm/DMBenchTask.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 // 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 "SkBenchmark.h" 4 #include "SkBenchmark.h"
5 #include "SkCommandLineFlags.h" 5 #include "SkCommandLineFlags.h"
6 #include "SkForceLinking.h" 6 #include "SkForceLinking.h"
7 #include "SkGraphics.h" 7 #include "SkGraphics.h"
8 #include "SkString.h" 8 #include "SkString.h"
9 #include "Test.h" 9 #include "Test.h"
10 #include "gm.h" 10 #include "gm.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 DM::Reporter* reporter, 81 DM::Reporter* reporter,
82 DM::TaskRunner* tasks) { 82 DM::TaskRunner* tasks) {
83 #define START(name, type, ...) \ 83 #define START(name, type, ...) \
84 if (lowercase(configs[j]).equals(name)) { \ 84 if (lowercase(configs[j]).equals(name)) { \
85 tasks->add(SkNEW_ARGS(DM::type, \ 85 tasks->add(SkNEW_ARGS(DM::type, \
86 (name, reporter, tasks, expectations, gms[i], ## __VA_ARGS__ ))); \ 86 (name, reporter, tasks, expectations, gms[i], ## __VA_ARGS__ ))); \
87 } 87 }
88 for (int i = 0; i < gms.count(); i++) { 88 for (int i = 0; i < gms.count(); i++) {
89 for (int j = 0; j < configs.count(); j++) { 89 for (int j = 0; j < configs.count(); j++) {
90 START("565", CpuGMTask, kRGB_565_SkColorType); 90 START("565", CpuGMTask, kRGB_565_SkColorType);
91 START("8888", CpuGMTask, kN32_SkColorType); 91 START("8888", CpuGMTask, kPMColor_SkColorType);
92 START("gpu", GpuGMTask, native, 0); 92 START("gpu", GpuGMTask, native, 0);
93 START("msaa4", GpuGMTask, native, 4); 93 START("msaa4", GpuGMTask, native, 4);
94 START("msaa16", GpuGMTask, native, 16); 94 START("msaa16", GpuGMTask, native, 16);
95 START("nvprmsaa4", GpuGMTask, nvpr, 4); 95 START("nvprmsaa4", GpuGMTask, nvpr, 4);
96 START("nvprmsaa16", GpuGMTask, nvpr, 16); 96 START("nvprmsaa16", GpuGMTask, nvpr, 16);
97 START("gpunull", GpuGMTask, null, 0); 97 START("gpunull", GpuGMTask, null, 0);
98 START("gpudebug", GpuGMTask, debug, 0); 98 START("gpudebug", GpuGMTask, debug, 0);
99 START("angle", GpuGMTask, angle, 0); 99 START("angle", GpuGMTask, angle, 0);
100 START("mesa", GpuGMTask, mesa, 0); 100 START("mesa", GpuGMTask, mesa, 0);
101 } 101 }
102 } 102 }
103 #undef START 103 #undef START
104 } 104 }
105 105
106 static void kick_off_benches(const SkTDArray<BenchRegistry::Factory>& benches, 106 static void kick_off_benches(const SkTDArray<BenchRegistry::Factory>& benches,
107 const SkTArray<SkString>& configs, 107 const SkTArray<SkString>& configs,
108 DM::Reporter* reporter, 108 DM::Reporter* reporter,
109 DM::TaskRunner* tasks) { 109 DM::TaskRunner* tasks) {
110 #define START(name, type, ...) \ 110 #define START(name, type, ...) \
111 if (lowercase(configs[j]).equals(name)) { \ 111 if (lowercase(configs[j]).equals(name)) { \
112 tasks->add(SkNEW_ARGS(DM::type, (name, reporter, tasks, benches[i], ## _ _VA_ARGS__))); \ 112 tasks->add(SkNEW_ARGS(DM::type, (name, reporter, tasks, benches[i], ## _ _VA_ARGS__))); \
113 } 113 }
114 for (int i = 0; i < benches.count(); i++) { 114 for (int i = 0; i < benches.count(); i++) {
115 for (int j = 0; j < configs.count(); j++) { 115 for (int j = 0; j < configs.count(); j++) {
116 START("nonrendering", NonRenderingBenchTask); 116 START("nonrendering", NonRenderingBenchTask);
117 START("565", CpuBenchTask, kRGB_565_SkColorType); 117 START("565", CpuBenchTask, kRGB_565_SkColorType);
118 START("8888", CpuBenchTask, kN32_SkColorType); 118 START("8888", CpuBenchTask, kPMColor_SkColorType);
119 START("gpu", GpuBenchTask, native, 0); 119 START("gpu", GpuBenchTask, native, 0);
120 START("msaa4", GpuBenchTask, native, 4); 120 START("msaa4", GpuBenchTask, native, 4);
121 START("msaa16", GpuBenchTask, native, 16); 121 START("msaa16", GpuBenchTask, native, 16);
122 START("nvprmsaa4", GpuBenchTask, nvpr, 4); 122 START("nvprmsaa4", GpuBenchTask, nvpr, 4);
123 START("nvprmsaa16", GpuBenchTask, nvpr, 16); 123 START("nvprmsaa16", GpuBenchTask, nvpr, 16);
124 START("gpunull", GpuBenchTask, null, 0); 124 START("gpunull", GpuBenchTask, null, 0);
125 START("gpudebug", GpuBenchTask, debug, 0); 125 START("gpudebug", GpuBenchTask, debug, 0);
126 START("angle", GpuBenchTask, angle, 0); 126 START("angle", GpuBenchTask, angle, 0);
127 START("mesa", GpuBenchTask, mesa, 0); 127 START("mesa", GpuBenchTask, mesa, 0);
128 } 128 }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 SkGraphics::Term(); 223 SkGraphics::Term();
224 224
225 return reporter.failed() > 0; 225 return reporter.failed() > 0;
226 } 226 }
227 227
228 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 228 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
229 int main(int argc, char** argv) { 229 int main(int argc, char** argv) {
230 return tool_main(argc, argv); 230 return tool_main(argc, argv);
231 } 231 }
232 #endif 232 #endif
OLDNEW
« no previous file with comments | « debugger/QT/SkImageWidget.cpp ('k') | dm/DMBenchTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698