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

Unified Diff: cc/output/gl_renderer.cc

Issue 17504006: GPU process clients can perform a "shallow" finish. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 6 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
Index: cc/output/gl_renderer.cc
===================================================================
--- cc/output/gl_renderer.cc (revision 207109)
+++ cc/output/gl_renderer.cc (working copy)
@@ -2012,12 +2012,12 @@
DrawQuadGeometry(
frame, draw_matrix, rect, program->vertex_shader().matrix_location());
}
+//
+//void GLRenderer::Finish() {
+// TRACE_EVENT0("cc", "GLRenderer::finish");
+// context_->finish();
+//}
-void GLRenderer::Finish() {
- TRACE_EVENT0("cc", "GLRenderer::finish");
- context_->finish();
-}
-
void GLRenderer::SwapBuffers() {
DCHECK(visible_);
DCHECK(!is_backbuffer_discarded_);
@@ -2343,7 +2343,8 @@
sync_point,
finished_callback);
} else {
- resource_provider_->Finish();
+ // Can this be a flush?
piman 2013/06/21 02:31:10 It can't because we're waiting on the the ReadPixe
+ // resource_provider_->Finish();
finished_callback.Run();
}
« no previous file with comments | « cc/output/gl_renderer.h ('k') | cc/output/renderer.h » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698