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

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: fix 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') | 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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); } 682 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); }
683 VIA("twice", ViaTwice, wrapped); 683 VIA("twice", ViaTwice, wrapped);
684 VIA("serialize", ViaSerialization, wrapped); 684 VIA("serialize", ViaSerialization, wrapped);
685 VIA("pic", ViaPicture, wrapped); 685 VIA("pic", ViaPicture, wrapped);
686 VIA("2ndpic", ViaSecondPicture, wrapped); 686 VIA("2ndpic", ViaSecondPicture, wrapped);
687 VIA("sp", ViaSingletonPictures, wrapped); 687 VIA("sp", ViaSingletonPictures, wrapped);
688 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); 688 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped);
689 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); 689 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped);
690 VIA("remote", ViaRemote, false, wrapped); 690 VIA("remote", ViaRemote, false, wrapped);
691 VIA("remote_cache", ViaRemote, true, wrapped); 691 VIA("remote_cache", ViaRemote, true, wrapped);
692 VIA("mojo", ViaMojo, wrapped);
692 693
693 if (FLAGS_matrix.count() == 4) { 694 if (FLAGS_matrix.count() == 4) {
694 SkMatrix m; 695 SkMatrix m;
695 m.reset(); 696 m.reset();
696 m.setScaleX((SkScalar)atof(FLAGS_matrix[0])); 697 m.setScaleX((SkScalar)atof(FLAGS_matrix[0]));
697 m.setSkewX ((SkScalar)atof(FLAGS_matrix[1])); 698 m.setSkewX ((SkScalar)atof(FLAGS_matrix[1]));
698 m.setSkewY ((SkScalar)atof(FLAGS_matrix[2])); 699 m.setSkewY ((SkScalar)atof(FLAGS_matrix[2]));
699 m.setScaleY((SkScalar)atof(FLAGS_matrix[3])); 700 m.setScaleY((SkScalar)atof(FLAGS_matrix[3]));
700 VIA("matrix", ViaMatrix, m, wrapped); 701 VIA("matrix", ViaMatrix, m, wrapped);
701 VIA("upright", ViaUpright, m, wrapped); 702 VIA("upright", ViaUpright, m, wrapped);
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
1301 Reporter* reporter, 1302 Reporter* reporter,
1302 GrContextFactory* fac tory); 1303 GrContextFactory* fac tory);
1303 } // namespace skiatest 1304 } // namespace skiatest
1304 1305
1305 #if !defined(SK_BUILD_FOR_IOS) 1306 #if !defined(SK_BUILD_FOR_IOS)
1306 int main(int argc, char** argv) { 1307 int main(int argc, char** argv) {
1307 SkCommandLineFlags::Parse(argc, argv); 1308 SkCommandLineFlags::Parse(argc, argv);
1308 return dm_main(); 1309 return dm_main();
1309 } 1310 }
1310 #endif 1311 #endif
OLDNEW
« no previous file with comments | « DEPS ('k') | dm/DMSrcSink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698