| OLD | NEW | 
|     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  Loading... | 
|   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  Loading... | 
|  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 | 
| OLD | NEW |