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 "BenchTimer.h" | 8 #include "BenchTimer.h" |
9 #include "CopyTilesRenderer.h" | 9 #include "CopyTilesRenderer.h" |
10 #include "LazyDecodeBitmap.h" | 10 #include "LazyDecodeBitmap.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 DEFINE_bool(timeIndividualTiles, false, "Report times for drawing individual til
es, rather than " | 42 DEFINE_bool(timeIndividualTiles, false, "Report times for drawing individual til
es, rather than " |
43 "times for drawing the whole page. Requires tiled rendering."); | 43 "times for drawing the whole page. Requires tiled rendering."); |
44 DEFINE_bool(purgeDecodedTex, false, "Purge decoded and GPU-uploaded textures " | 44 DEFINE_bool(purgeDecodedTex, false, "Purge decoded and GPU-uploaded textures " |
45 "after each iteration."); | 45 "after each iteration."); |
46 DEFINE_string(timers, "c", "[wcgWC]*: Display wall, cpu, gpu, truncated wall or
truncated cpu time" | 46 DEFINE_string(timers, "c", "[wcgWC]*: Display wall, cpu, gpu, truncated wall or
truncated cpu time" |
47 " for each picture."); | 47 " for each picture."); |
48 DEFINE_bool(trackDeferredCaching, false, "Only meaningful with --deferImageDecod
ing and " | 48 DEFINE_bool(trackDeferredCaching, false, "Only meaningful with --deferImageDecod
ing and " |
49 "SK_LAZY_CACHE_STATS set to true. Report percentage of cache hits wh
en using " | 49 "SK_LAZY_CACHE_STATS set to true. Report percentage of cache hits wh
en using " |
50 "deferred image decoding."); | 50 "deferred image decoding."); |
51 | 51 |
52 DEFINE_bool(preprocess, true, "If true, perform device specific preprocessing be
fore timing."); | 52 DEFINE_bool(preprocess, false, "If true, perform device specific preprocessing b
efore timing."); |
53 | 53 |
54 static char const * const gFilterTypes[] = { | 54 static char const * const gFilterTypes[] = { |
55 "paint", | 55 "paint", |
56 "point", | 56 "point", |
57 "line", | 57 "line", |
58 "bitmap", | 58 "bitmap", |
59 "rect", | 59 "rect", |
60 "oval", | 60 "oval", |
61 "path", | 61 "path", |
62 "text", | 62 "text", |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 } | 445 } |
446 #endif | 446 #endif |
447 return 0; | 447 return 0; |
448 } | 448 } |
449 | 449 |
450 #if !defined SK_BUILD_FOR_IOS | 450 #if !defined SK_BUILD_FOR_IOS |
451 int main(int argc, char * const argv[]) { | 451 int main(int argc, char * const argv[]) { |
452 return tool_main(argc, (char**) argv); | 452 return tool_main(argc, (char**) argv); |
453 } | 453 } |
454 #endif | 454 #endif |
OLD | NEW |