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

Side by Side Diff: dm/DM.cpp

Issue 1644043003: SkMojo: test linking Skia against the Mojo SDK (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-01-29 (Friday) 12:55:47 EST Created 4 years, 10 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 | « DEPS ('k') | dm/DMSrcSink.h » ('j') | dm/DMSrcSink.cpp » ('J')
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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); } 637 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); }
638 VIA("twice", ViaTwice, wrapped); 638 VIA("twice", ViaTwice, wrapped);
639 VIA("serialize", ViaSerialization, wrapped); 639 VIA("serialize", ViaSerialization, wrapped);
640 VIA("pic", ViaPicture, wrapped); 640 VIA("pic", ViaPicture, wrapped);
641 VIA("2ndpic", ViaSecondPicture, wrapped); 641 VIA("2ndpic", ViaSecondPicture, wrapped);
642 VIA("sp", ViaSingletonPictures, wrapped); 642 VIA("sp", ViaSingletonPictures, wrapped);
643 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); 643 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped);
644 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); 644 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped);
645 VIA("remote", ViaRemote, false, wrapped); 645 VIA("remote", ViaRemote, false, wrapped);
646 VIA("remote_cache", ViaRemote, true, wrapped); 646 VIA("remote_cache", ViaRemote, true, wrapped);
647 VIA("mojo", ViaMojo, wrapped);
647 648
648 if (FLAGS_matrix.count() == 4) { 649 if (FLAGS_matrix.count() == 4) {
649 SkMatrix m; 650 SkMatrix m;
650 m.reset(); 651 m.reset();
651 m.setScaleX((SkScalar)atof(FLAGS_matrix[0])); 652 m.setScaleX((SkScalar)atof(FLAGS_matrix[0]));
652 m.setSkewX ((SkScalar)atof(FLAGS_matrix[1])); 653 m.setSkewX ((SkScalar)atof(FLAGS_matrix[1]));
653 m.setSkewY ((SkScalar)atof(FLAGS_matrix[2])); 654 m.setSkewY ((SkScalar)atof(FLAGS_matrix[2]));
654 m.setScaleY((SkScalar)atof(FLAGS_matrix[3])); 655 m.setScaleY((SkScalar)atof(FLAGS_matrix[3]));
655 VIA("matrix", ViaMatrix, m, wrapped); 656 VIA("matrix", ViaMatrix, m, wrapped);
656 VIA("upright", ViaUpright, m, wrapped); 657 VIA("upright", ViaUpright, m, wrapped);
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 Reporter* reporter, 1259 Reporter* reporter,
1259 GrContextFactory* fac tory); 1260 GrContextFactory* fac tory);
1260 } // namespace skiatest 1261 } // namespace skiatest
1261 1262
1262 #if !defined(SK_BUILD_FOR_IOS) 1263 #if !defined(SK_BUILD_FOR_IOS)
1263 int main(int argc, char** argv) { 1264 int main(int argc, char** argv) {
1264 SkCommandLineFlags::Parse(argc, argv); 1265 SkCommandLineFlags::Parse(argc, argv);
1265 return dm_main(); 1266 return dm_main();
1266 } 1267 }
1267 #endif 1268 #endif
OLDNEW
« no previous file with comments | « DEPS ('k') | dm/DMSrcSink.h » ('j') | dm/DMSrcSink.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698