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

Side by Side Diff: tools/bench_pictures_main.cpp

Issue 960783003: Add image as a draw type that can be filtered Base URL: https://skia.googlesource.com/skia.git@skimage-filters-04-snapshot-devices-and-use-snapshots-in-skcanvas
Patch Set: rebase Created 5 years, 9 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 | « tests/SkImageTest.cpp ('k') | no next file » | 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 2012 Google Inc. 2 * Copyright 2012 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 "BenchLogger.h" 8 #include "BenchLogger.h"
9 #include "Timer.h" 9 #include "Timer.h"
10 #include "CopyTilesRenderer.h" 10 #include "CopyTilesRenderer.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 DEFINE_string(gitHash, "", "Commit hash of the revision of Skia being run."); 68 DEFINE_string(gitHash, "", "Commit hash of the revision of Skia being run.");
69 DEFINE_int32(gitNumber, -1, "Git number of the revision of Skia being run."); 69 DEFINE_int32(gitNumber, -1, "Git number of the revision of Skia being run.");
70 70
71 71
72 static char const * const gFilterTypes[] = { 72 static char const * const gFilterTypes[] = {
73 "paint", 73 "paint",
74 "point", 74 "point",
75 "line", 75 "line",
76 "bitmap", 76 "bitmap",
77 "rect", 77 "rect",
78 "rrect",
78 "oval", 79 "oval",
79 "path", 80 "path",
80 "text", 81 "text",
82 "image",
81 "all", 83 "all",
82 }; 84 };
83 85
84 static const size_t kFilterTypesCount = sizeof(gFilterTypes) / sizeof(gFilterTyp es[0]); 86 static const size_t kFilterTypesCount = sizeof(gFilterTypes) / sizeof(gFilterTyp es[0]);
85 87
88 SK_COMPILE_ASSERT(kFilterTypesCount - 1u == SkDrawFilter::kTypeCount,
89 filter_types_list_is_not_exact);
90
86 static char const * const gFilterFlags[] = { 91 static char const * const gFilterFlags[] = {
87 "antiAlias", 92 "antiAlias",
88 "filterBitmap", 93 "filterBitmap",
89 "dither", 94 "dither",
90 "underlineText", 95 "underlineText",
91 "strikeThruText", 96 "strikeThruText",
92 "fakeBoldText", 97 "fakeBoldText",
93 "linearText", 98 "linearText",
94 "subpixelText", 99 "subpixelText",
95 "devKernText", 100 "devKernText",
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 484
480 gWriter.end(); 485 gWriter.end();
481 return 0; 486 return 0;
482 } 487 }
483 488
484 #if !defined SK_BUILD_FOR_IOS 489 #if !defined SK_BUILD_FOR_IOS
485 int main(int argc, char * const argv[]) { 490 int main(int argc, char * const argv[]) {
486 return tool_main(argc, (char**) argv); 491 return tool_main(argc, (char**) argv);
487 } 492 }
488 #endif 493 #endif
OLDNEW
« no previous file with comments | « tests/SkImageTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698