diff options
author | junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-16 18:43:36 +0000 |
---|---|---|
committer | junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-16 18:43:36 +0000 |
commit | 20bd04e365ca8f5cdb37068fedd696e783d1a775 (patch) | |
tree | 86a23ba9176b9b42e819046061df071ba97039a7 /tools | |
parent | ca1b3ff63427396c01005f37255fb8c9eb17f910 (diff) |
Turn on the kUsePathBoundsForClip_RecordingFlag in bench, gm and tools that use class PictureRenderer
Chrome uses this flag for recording to skpicture in order to improve performance.
Therefore, skai benchmarks should run with this flag enabled, and we need
gm and render_pictures test coverage to validate it. In gm, the vanilla
SkPicture test step will still run without the flag to ensure that case still gets test
coverage, while the SkPicture test steps that use rtree and tileGrid will now run with
the flag enabled.
Review URL: https://codereview.appspot.com/7111043
git-svn-id: http://skia.googlecode.com/svn/trunk@7234 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools')
-rw-r--r-- | tools/PictureRenderer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/PictureRenderer.cpp b/tools/PictureRenderer.cpp index 616613df50..08f85a435d 100644 --- a/tools/PictureRenderer.cpp +++ b/tools/PictureRenderer.cpp @@ -190,8 +190,9 @@ void PictureRenderer::resetState() { } uint32_t PictureRenderer::recordFlags() { - return kNone_BBoxHierarchyType == fBBoxHierarchyType ? 0 : - SkPicture::kOptimizeForClippedPlayback_RecordingFlag; + return kNone_BBoxHierarchyType == (fBBoxHierarchyType ? 0 : + SkPicture::kOptimizeForClippedPlayback_RecordingFlag) | + SkPicture::kUsePathBoundsForClip_RecordingFlag; } /** |