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

Side by Side Diff: dm/DM.cpp

Issue 1269093002: remove SkDeferredCanvas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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 | « bench/DeferredSurfaceCopyBench.cpp ('k') | dm/DMSrcSink.cpp » ('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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 } 411 }
412 #undef SINK 412 #undef SINK
413 return NULL; 413 return NULL;
414 } 414 }
415 415
416 static Sink* create_via(const char* tag, Sink* wrapped) { 416 static Sink* create_via(const char* tag, Sink* wrapped) {
417 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__); } 417 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__); }
418 VIA("twice", ViaTwice, wrapped); 418 VIA("twice", ViaTwice, wrapped);
419 VIA("pipe", ViaPipe, wrapped); 419 VIA("pipe", ViaPipe, wrapped);
420 VIA("serialize", ViaSerialization, wrapped); 420 VIA("serialize", ViaSerialization, wrapped);
421 VIA("deferred", ViaDeferred, wrapped);
422 VIA("2ndpic", ViaSecondPicture, wrapped); 421 VIA("2ndpic", ViaSecondPicture, wrapped);
423 VIA("sp", ViaSingletonPictures, wrapped); 422 VIA("sp", ViaSingletonPictures, wrapped);
424 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped); 423 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped);
425 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); 424 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped);
426 425
427 if (FLAGS_matrix.count() == 4) { 426 if (FLAGS_matrix.count() == 4) {
428 SkMatrix m; 427 SkMatrix m;
429 m.reset(); 428 m.reset();
430 m.setScaleX((SkScalar)atof(FLAGS_matrix[0])); 429 m.setScaleX((SkScalar)atof(FLAGS_matrix[0]));
431 m.setSkewX ((SkScalar)atof(FLAGS_matrix[1])); 430 m.setSkewX ((SkScalar)atof(FLAGS_matrix[1]));
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 } 848 }
850 return 0; 849 return 0;
851 } 850 }
852 851
853 #if !defined(SK_BUILD_FOR_IOS) 852 #if !defined(SK_BUILD_FOR_IOS)
854 int main(int argc, char** argv) { 853 int main(int argc, char** argv) {
855 SkCommandLineFlags::Parse(argc, argv); 854 SkCommandLineFlags::Parse(argc, argv);
856 return dm_main(); 855 return dm_main();
857 } 856 }
858 #endif 857 #endif
OLDNEW
« no previous file with comments | « bench/DeferredSurfaceCopyBench.cpp ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698