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

Side by Side Diff: dm/DM.cpp

Issue 1513323002: DM: fix `--config $VIA-pdf` to not crash (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-12-10 (Thursday) 15:08:03 EST Created 5 years 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 /* 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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 SINK("skp", SKPSink); 636 SINK("skp", SKPSink);
637 SINK("svg", SVGSink); 637 SINK("svg", SVGSink);
638 SINK("null", NullSink); 638 SINK("null", NullSink);
639 SINK("xps", XPSSink); 639 SINK("xps", XPSSink);
640 } 640 }
641 #undef SINK 641 #undef SINK
642 return nullptr; 642 return nullptr;
643 } 643 }
644 644
645 static Sink* create_via(const char* tag, Sink* wrapped) { 645 static Sink* create_via(const char* tag, Sink* wrapped) {
646 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__); } 646 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(t, __VA_ARGS_ _); }
647 VIA("twice", ViaTwice, wrapped); 647 VIA("twice", ViaTwice, wrapped);
648 VIA("pipe", ViaPipe, wrapped); 648 VIA("pipe", ViaPipe, wrapped);
649 VIA("serialize", ViaSerialization, wrapped); 649 VIA("serialize", ViaSerialization, wrapped);
650 VIA("2ndpic", ViaSecondPicture, wrapped); 650 VIA("2ndpic", ViaSecondPicture, wrapped);
651 VIA("sp", ViaSingletonPictures, wrapped); 651 VIA("sp", ViaSingletonPictures, wrapped);
652 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); 652 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped);
653 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); 653 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped);
654 VIA("remote", ViaRemote, false, wrapped); 654 VIA("remote", ViaRemote, false, wrapped);
655 VIA("remote_cache", ViaRemote, true, wrapped); 655 VIA("remote_cache", ViaRemote, true, wrapped);
656 656
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 Reporter* reporter, 1218 Reporter* reporter,
1219 GrContextFactory* fac tory); 1219 GrContextFactory* fac tory);
1220 } // namespace skiatest 1220 } // namespace skiatest
1221 1221
1222 #if !defined(SK_BUILD_FOR_IOS) 1222 #if !defined(SK_BUILD_FOR_IOS)
1223 int main(int argc, char** argv) { 1223 int main(int argc, char** argv) {
1224 SkCommandLineFlags::Parse(argc, argv); 1224 SkCommandLineFlags::Parse(argc, argv);
1225 return dm_main(); 1225 return dm_main();
1226 } 1226 }
1227 #endif 1227 #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