Chromium Code Reviews| 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(); |
| } |