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

Side by Side Diff: dm/DM.cpp

Issue 861303003: Don't test pipe modes nobody uses. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 | dm/DMSrcSink.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "CrashHandler.h" 1 #include "CrashHandler.h"
2 #include "DMJsonWriter.h" 2 #include "DMJsonWriter.h"
3 #include "DMSrcSink.h" 3 #include "DMSrcSink.h"
4 #include "OverwriteLine.h" 4 #include "OverwriteLine.h"
5 #include "ProcStats.h" 5 #include "ProcStats.h"
6 #include "SkBBHFactory.h" 6 #include "SkBBHFactory.h"
7 #include "SkCommonFlags.h" 7 #include "SkCommonFlags.h"
8 #include "SkForceLinking.h" 8 #include "SkForceLinking.h"
9 #include "SkGraphics.h" 9 #include "SkGraphics.h"
10 #include "SkMD5.h" 10 #include "SkMD5.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 SINK("565", RasterSink, kRGB_565_SkColorType); 164 SINK("565", RasterSink, kRGB_565_SkColorType);
165 SINK("8888", RasterSink, kN32_SkColorType); 165 SINK("8888", RasterSink, kN32_SkColorType);
166 SINK("pdf", PDFSink); 166 SINK("pdf", PDFSink);
167 } 167 }
168 #undef SINK 168 #undef SINK
169 return NULL; 169 return NULL;
170 } 170 }
171 171
172 static Sink* create_via(const char* tag, Sink* wrapped) { 172 static Sink* create_via(const char* tag, Sink* wrapped) {
173 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__); } 173 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__); }
174 VIA("pipe", ViaPipe, wrapped);
174 VIA("serialize", ViaSerialization, wrapped); 175 VIA("serialize", ViaSerialization, wrapped);
175 176 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped);
176 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped); 177 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped);
177 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped);
178
179 const int xp = SkGPipeWriter::kCrossProcess_Flag,
180 sa = xp | SkGPipeWriter::kSharedAddressSpace_Flag;
181 VIA("pipe", ViaPipe, 0, wrapped);
182 VIA("pipe_xp", ViaPipe, xp, wrapped);
183 VIA("pipe_sa", ViaPipe, sa, wrapped);
184 178
185 if (FLAGS_matrix.count() == 9) { 179 if (FLAGS_matrix.count() == 9) {
186 SkMatrix m; 180 SkMatrix m;
187 for (int i = 0; i < 9; i++) { 181 for (int i = 0; i < 9; i++) {
188 m[i] = (SkScalar)atof(FLAGS_matrix[i]); 182 m[i] = (SkScalar)atof(FLAGS_matrix[i]);
189 } 183 }
190 VIA("matrix", ViaMatrix, m, wrapped); 184 VIA("matrix", ViaMatrix, m, wrapped);
191 } 185 }
192 #undef VIA 186 #undef VIA
193 return NULL; 187 return NULL;
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 } 464 }
471 return 0; 465 return 0;
472 } 466 }
473 467
474 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 468 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
475 int main(int argc, char** argv) { 469 int main(int argc, char** argv) {
476 SkCommandLineFlags::Parse(argc, argv); 470 SkCommandLineFlags::Parse(argc, argv);
477 return dm_main(); 471 return dm_main();
478 } 472 }
479 #endif 473 #endif
OLDNEW
« no previous file with comments | « no previous file | dm/DMSrcSink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698