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" |
11 #include "PictureRenderer.h" | 11 #include "PictureRenderer.h" |
12 #include "picture_utils.h" | 12 #include "picture_utils.h" |
13 #include "SkBitmapFactory.h" | |
14 #include "SkCommandLineFlags.h" | 13 #include "SkCommandLineFlags.h" |
15 #include "SkData.h" | 14 #include "SkData.h" |
16 #include "SkImage.h" | 15 #include "SkImage.h" |
17 #include "SkImageDecoder.h" | 16 #include "SkImageDecoder.h" |
18 #include "SkString.h" | 17 #include "SkString.h" |
19 | 18 |
20 // Alphabetized list of flags used by this file or bench_ and render_pictures. | 19 // Alphabetized list of flags used by this file or bench_ and render_pictures. |
21 DEFINE_string(bbh, "none", "bbhType [width height]: Set the bounding box hierarc
hy type to " | 20 DEFINE_string(bbh, "none", "bbhType [width height]: Set the bounding box hierarc
hy type to " |
22 "be used. Accepted values are: none, rtree, grid. " | 21 "be used. Accepted values are: none, rtree, grid. " |
23 "Not compatible with --pipe. With value " | 22 "Not compatible with --pipe. With value " |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 if (FLAGS_pipe && sk_tools::PictureRenderer::kNone_BBoxHierarchyType !=
bbhType) { | 326 if (FLAGS_pipe && sk_tools::PictureRenderer::kNone_BBoxHierarchyType !=
bbhType) { |
328 error.printf("--pipe and --bbh cannot be used together\n"); | 327 error.printf("--pipe and --bbh cannot be used together\n"); |
329 return NULL; | 328 return NULL; |
330 } | 329 } |
331 } | 330 } |
332 renderer->setBBoxHierarchyType(bbhType); | 331 renderer->setBBoxHierarchyType(bbhType); |
333 renderer->setScaleFactor(SkDoubleToScalar(FLAGS_scale)); | 332 renderer->setScaleFactor(SkDoubleToScalar(FLAGS_scale)); |
334 | 333 |
335 return renderer.detach(); | 334 return renderer.detach(); |
336 } | 335 } |
OLD | NEW |