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

Side by Side Diff: dm/DM.cpp

Issue 1569823006: DM: more invariants (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: run twice-8888 and 2ndpic-8888 on some bots Created 4 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 /* 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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 SINK("xps", XPSSink); 617 SINK("xps", XPSSink);
618 } 618 }
619 #undef SINK 619 #undef SINK
620 return nullptr; 620 return nullptr;
621 } 621 }
622 622
623 static Sink* create_via(const SkString& tag, Sink* wrapped) { 623 static Sink* create_via(const SkString& tag, Sink* wrapped) {
624 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); } 624 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); }
625 VIA("twice", ViaTwice, wrapped); 625 VIA("twice", ViaTwice, wrapped);
626 VIA("serialize", ViaSerialization, wrapped); 626 VIA("serialize", ViaSerialization, wrapped);
627 VIA("pic", ViaPicture, wrapped);
627 VIA("2ndpic", ViaSecondPicture, wrapped); 628 VIA("2ndpic", ViaSecondPicture, wrapped);
628 VIA("sp", ViaSingletonPictures, wrapped); 629 VIA("sp", ViaSingletonPictures, wrapped);
629 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); 630 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped);
630 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); 631 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped);
631 VIA("remote", ViaRemote, false, wrapped); 632 VIA("remote", ViaRemote, false, wrapped);
632 VIA("remote_cache", ViaRemote, true, wrapped); 633 VIA("remote_cache", ViaRemote, true, wrapped);
633 634
634 if (FLAGS_matrix.count() == 4) { 635 if (FLAGS_matrix.count() == 4) {
635 SkMatrix m; 636 SkMatrix m;
636 m.reset(); 637 m.reset();
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 Reporter* reporter, 1240 Reporter* reporter,
1240 GrContextFactory* fac tory); 1241 GrContextFactory* fac tory);
1241 } // namespace skiatest 1242 } // namespace skiatest
1242 1243
1243 #if !defined(SK_BUILD_FOR_IOS) 1244 #if !defined(SK_BUILD_FOR_IOS)
1244 int main(int argc, char** argv) { 1245 int main(int argc, char** argv) {
1245 SkCommandLineFlags::Parse(argc, argv); 1246 SkCommandLineFlags::Parse(argc, argv);
1246 return dm_main(); 1247 return dm_main();
1247 } 1248 }
1248 #endif 1249 #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