diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-11 22:58:00 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-11 22:58:00 +0000 |
commit | 51c040ed1e8c50bec4297bbe25242f644b40b0b7 (patch) | |
tree | 26db2071a417be87b2395c3c41f9bf0fd3652aa0 /tools/PictureRenderer.h | |
parent | 6f458fc22181622af0ccc7edb583152521bb73b3 (diff) |
Alter bench_pictures to "respect" the logPerIter flag.
When --logPerIters is set and --repeat is great then 2 then bench_pictures will run each test "repeat" times (to generate the correct number of timings) by rendering 5 times.
This CL also adds a swapBuffers in addition to the pre-existing flush calls.
R=bsalomon@google.com
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/194973003
git-svn-id: http://skia.googlecode.com/svn/trunk@13752 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools/PictureRenderer.h')
-rw-r--r-- | tools/PictureRenderer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/PictureRenderer.h b/tools/PictureRenderer.h index 94912c73ad..c3438c912f 100644 --- a/tools/PictureRenderer.h +++ b/tools/PictureRenderer.h @@ -149,7 +149,7 @@ public: /** * Resets the GPU's state. Does nothing if the backing is raster. For a GPU renderer, calls - * flush, and calls finish if callFinish is true. + * flush, swapBuffers and, if callFinish is true, finish. * @param callFinish Whether to call finish. */ void resetState(bool callFinish); |