| OLD | NEW |
| 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 Loading... |
| 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", | |
| 79 "oval", | 78 "oval", |
| 80 "path", | 79 "path", |
| 81 "text", | 80 "text", |
| 82 "image", | |
| 83 "all", | 81 "all", |
| 84 }; | 82 }; |
| 85 | 83 |
| 86 static const size_t kFilterTypesCount = sizeof(gFilterTypes) / sizeof(gFilterTyp
es[0]); | 84 static const size_t kFilterTypesCount = sizeof(gFilterTypes) / sizeof(gFilterTyp
es[0]); |
| 87 | 85 |
| 88 SK_COMPILE_ASSERT(kFilterTypesCount - 1u == SkDrawFilter::kTypeCount, | |
| 89 filter_types_list_is_not_exact); | |
| 90 | |
| 91 static char const * const gFilterFlags[] = { | 86 static char const * const gFilterFlags[] = { |
| 92 "antiAlias", | 87 "antiAlias", |
| 93 "filterBitmap", | 88 "filterBitmap", |
| 94 "dither", | 89 "dither", |
| 95 "underlineText", | 90 "underlineText", |
| 96 "strikeThruText", | 91 "strikeThruText", |
| 97 "fakeBoldText", | 92 "fakeBoldText", |
| 98 "linearText", | 93 "linearText", |
| 99 "subpixelText", | 94 "subpixelText", |
| 100 "devKernText", | 95 "devKernText", |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 | 479 |
| 485 gWriter.end(); | 480 gWriter.end(); |
| 486 return 0; | 481 return 0; |
| 487 } | 482 } |
| 488 | 483 |
| 489 #if !defined SK_BUILD_FOR_IOS | 484 #if !defined SK_BUILD_FOR_IOS |
| 490 int main(int argc, char * const argv[]) { | 485 int main(int argc, char * const argv[]) { |
| 491 return tool_main(argc, (char**) argv); | 486 return tool_main(argc, (char**) argv); |
| 492 } | 487 } |
| 493 #endif | 488 #endif |
| OLD | NEW |