aboutsummaryrefslogtreecommitdiffhomepage
path: root/debugger/QT/SkDebuggerGUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'debugger/QT/SkDebuggerGUI.cpp')
-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();
}