Alter bench_pictures to "respect" the logPerIter flag.
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 11 Mar 2014 22:58:00 +0000 (22:58 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 11 Mar 2014 22:58:00 +0000 (22:58 +0000)
commit51c040ed1e8c50bec4297bbe25242f644b40b0b7
tree26db2071a417be87b2395c3c41f9bf0fd3652aa0
parent6f458fc22181622af0ccc7edb583152521bb73b3
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
debugger/QT/SkDebuggerGUI.cpp
tools/PictureBenchmark.cpp
tools/PictureRenderer.cpp
tools/PictureRenderer.h