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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 7253052: Execute all GL commands up to the put offset reported by a flush. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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: gpu/command_buffer/client/gles2_implementation.cc
===================================================================
--- gpu/command_buffer/client/gles2_implementation.cc (revision 91774)
+++ gpu/command_buffer/client/gles2_implementation.cc (working copy)
@@ -800,7 +800,6 @@
// the scheduler yields between the InsertToken and the SwapBuffers.
swap_buffers_tokens_.push(helper_->InsertToken());
helper_->SwapBuffers();
- helper_->YieldScheduler();
helper_->CommandBufferHelper::Flush();
// Wait if we added too many swap buffers.
if (swap_buffers_tokens_.size() > kMaxSwapBuffers) {
@@ -818,6 +817,16 @@
client_parent_id);
}
+void GLES2Implementation::ResizeCHROMIUM(GLuint width, GLuint height) {
+ GPU_CLIENT_LOG("[" << this << "] glResizeCHROMIUM("
+ << width << ", " << height << ")");
+ helper_->ResizeCHROMIUM(width, height);
+
+ // ResizeCHROMIUM might unschedule. Make sure it is flushed so that subsequent
+ // commands are not issued out-of-order with other command buffers.
+ helper_->CommandBufferHelper::Flush();
piman 2011/07/09 20:40:22 It took me a while to figure this out, even with t
jbates 2011/07/11 18:39:50 I'm not sure why this Flush is needed. Why does ge
apatrick_chromium 2011/07/11 21:25:45 It's complicated and confusing and liable to cause
+}
+
void GLES2Implementation::GenSharedIdsCHROMIUM(
GLuint namespace_id, GLuint id_offset, GLsizei n, GLuint* ids) {
GPU_CLIENT_LOG("[" << this << "] glGenSharedIdsCHROMIUMTextures("

Powered by Google App Engine
This is Rietveld 408576698