Index: tools/PictureRenderingFlags.cpp |
diff --git a/tools/PictureRenderingFlags.cpp b/tools/PictureRenderingFlags.cpp |
index 7d34e27491caa929c3d097c9cbb8bd09b26d2918..c5226534d58ca380fbe0089064a37a084673735a 100644 |
--- a/tools/PictureRenderingFlags.cpp |
+++ b/tools/PictureRenderingFlags.cpp |
@@ -18,7 +18,7 @@ |
// Alphabetized list of flags used by this file or bench_ and render_pictures. |
DEFINE_string(bbh, "none", "bbhType [width height]: Set the bounding box hierarchy type to " |
- "be used. Accepted values are: none, rtree, grid. " |
+ "be used. Accepted values are: none, rtree, quadtree, grid. " |
"Not compatible with --pipe. With value " |
"'grid', width and height must be specified. 'grid' can " |
"only be used with modes tile, record, and " |
@@ -325,6 +325,8 @@ sk_tools::PictureRenderer* parseRenderer(SkString& error, PictureTool tool) { |
const char* type = FLAGS_bbh[0]; |
if (0 == strcmp(type, "none")) { |
bbhType = sk_tools::PictureRenderer::kNone_BBoxHierarchyType; |
+ } else if (0 == strcmp(type, "quadtree")) { |
+ bbhType = sk_tools::PictureRenderer::kQuadTree_BBoxHierarchyType; |
} else if (0 == strcmp(type, "rtree")) { |
bbhType = sk_tools::PictureRenderer::kRTree_BBoxHierarchyType; |
} else if (0 == strcmp(type, "grid")) { |