aboutsummaryrefslogtreecommitdiffhomepage
path: root/debugger
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-11 22:58:00 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-11 22:58:00 +0000
commit51c040ed1e8c50bec4297bbe25242f644b40b0b7 (patch)
tree26db2071a417be87b2395c3c41f9bf0fd3652aa0 /debugger
parent6f458fc22181622af0ccc7edb583152521bb73b3 (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 'debugger')
-rw-r--r--debugger/QT/SkDebuggerGUI.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/debugger/QT/SkDebuggerGUI.cpp b/debugger/QT/SkDebuggerGUI.cpp
index de5edbec17..b777aa1cfa 100644
--- a/debugger/QT/SkDebuggerGUI.cpp
+++ b/debugger/QT/SkDebuggerGUI.cpp
@@ -323,7 +323,7 @@ void SkDebuggerGUI::run(SkTimedPicture* pict,
renderer->setup();
renderer->render(NULL);
- renderer->resetState(true);
+ renderer->resetState(true); // flush, swapBuffers and Finish
// We throw this away the first batch of times to remove first time effects (such as paging in this program)
pict->resetTimes();
@@ -331,8 +331,9 @@ void SkDebuggerGUI::run(SkTimedPicture* pict,
for (int i = 0; i < repeats; ++i) {
renderer->setup();
renderer->render(NULL);
- renderer->resetState(true);
+ renderer->resetState(false); // flush & swapBuffers, but don't Finish
}
+ renderer->resetState(true); // flush, swapBuffers and Finish
renderer->end();
}