Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2295)

Unified Diff: debugger/QT/SkDebuggerGUI.cpp

Issue 194973003: Alter bench_pictures to "respect" the logPerIter flag (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/PictureBenchmark.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debugger/QT/SkDebuggerGUI.cpp
===================================================================
--- debugger/QT/SkDebuggerGUI.cpp (revision 13738)
+++ debugger/QT/SkDebuggerGUI.cpp (working copy)
@@ -323,7 +323,7 @@
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 @@
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();
}
« no previous file with comments | « no previous file | tools/PictureBenchmark.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698