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 "PictureRenderingFlags.h" | 8 #include "PictureRenderingFlags.h" |
9 | 9 |
10 #include "CopyTilesRenderer.h" | 10 #include "CopyTilesRenderer.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // to determine which modes to display. | 53 // to determine which modes to display. |
54 "record: (Only in bench_pictures) Time recording from a picture to
a new\n" | 54 "record: (Only in bench_pictures) Time recording from a picture to
a new\n" |
55 "\tpicture.\n" | 55 "\tpicture.\n" |
56 "playbackCreation: (Only in bench_pictures) Time creation of the \
n" | 56 "playbackCreation: (Only in bench_pictures) Time creation of the \
n" |
57 "\tSkPicturePlayback.\n" | 57 "\tSkPicturePlayback.\n" |
58 "rerecord: (Only in render_pictures) Record the picture as a new s
kp,\n" | 58 "rerecord: (Only in render_pictures) Record the picture as a new s
kp,\n" |
59 "\twith the bitmaps PNG encoded.\n"); | 59 "\twith the bitmaps PNG encoded.\n"); |
60 DEFINE_int32(multi, 1, "Set the number of threads for multi threaded drawing. " | 60 DEFINE_int32(multi, 1, "Set the number of threads for multi threaded drawing. " |
61 "If > 1, requires tiled rendering."); | 61 "If > 1, requires tiled rendering."); |
62 DEFINE_bool(pipe, false, "Use SkGPipe rendering. Currently incompatible with \"m
ode\"."); | 62 DEFINE_bool(pipe, false, "Use SkGPipe rendering. Currently incompatible with \"m
ode\"."); |
63 DEFINE_string(r, "", "skp files or directories of skp files to process."); | 63 DEFINE_string2(readPath, r, "", "skp files or directories of skp files to proces
s."); |
64 DEFINE_double(scale, 1, "Set the scale factor."); | 64 DEFINE_double(scale, 1, "Set the scale factor."); |
65 DEFINE_string(tiles, "", "Used with --mode copyTile to specify number of tiles p
er larger tile " | 65 DEFINE_string(tiles, "", "Used with --mode copyTile to specify number of tiles p
er larger tile " |
66 "in the x and y directions."); | 66 "in the x and y directions."); |
67 DEFINE_bool(useVolatileCache, false, "Use a volatile cache for deferred image de
coding pixels. " | 67 DEFINE_bool(useVolatileCache, false, "Use a volatile cache for deferred image de
coding pixels. " |
68 "Only meaningful if --deferImageDecoding is set to true and the plat
form has an " | 68 "Only meaningful if --deferImageDecoding is set to true and the plat
form has an " |
69 "implementation."); | 69 "implementation."); |
70 DEFINE_string(viewport, "", "width height: Set the viewport."); | 70 DEFINE_string(viewport, "", "width height: Set the viewport."); |
71 | 71 |
72 sk_tools::PictureRenderer* parseRenderer(SkString& error, PictureTool tool) { | 72 sk_tools::PictureRenderer* parseRenderer(SkString& error, PictureTool tool) { |
73 error.reset(); | 73 error.reset(); |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 if (FLAGS_useVolatileCache && SkAutoTUnref<SkImageCache>( | 360 if (FLAGS_useVolatileCache && SkAutoTUnref<SkImageCache>( |
361 SkPurgeableImageCache::Create()).get() != NULL) { | 361 SkPurgeableImageCache::Create()).get() != NULL) { |
362 gFactory.setCacheSelector(&gCacheSelector); | 362 gFactory.setCacheSelector(&gCacheSelector); |
363 } else { | 363 } else { |
364 gFactory.setImageCache(&gLruImageCache); | 364 gFactory.setImageCache(&gLruImageCache); |
365 } | 365 } |
366 gOnce = true; | 366 gOnce = true; |
367 } | 367 } |
368 return gFactory.installPixelRef(data, bitmap); | 368 return gFactory.installPixelRef(data, bitmap); |
369 } | 369 } |
OLD | NEW |