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

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

Issue 10782005: Add a shallow command buffer flush that doesn't glFlush (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes a test failure Created 8 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
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index cfd4fadd3fb4be5f501f21c1317c5e175281cf19..de8be7e762c3b0bf4b728130c9d1ae86aead5727 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -1055,6 +1055,14 @@ void GLES2Implementation::Flush() {
helper_->CommandBufferHelper::Flush();
}
+void GLES2Implementation::ShallowFlushCHROMIUM() {
+ GPU_CLIENT_SINGLE_THREAD_CHECK();
+ GPU_CLIENT_LOG("[" << this << "] glShallowFlushCHROMIUM()");
+ // Flush our command buffer
+ // (tell the service to execute up to the flush cmd.)
+ helper_->CommandBufferHelper::Flush();
+}
+
void GLES2Implementation::Finish() {
GPU_CLIENT_SINGLE_THREAD_CHECK();
FinishHelper();
@@ -2120,8 +2128,9 @@ const GLubyte* GLES2Implementation::GetStringHelper(GLenum name) {
switch (name) {
case GL_EXTENSIONS:
str += std::string(str.empty() ? "" : " ") +
- "GL_CHROMIUM_map_sub "
"GL_CHROMIUM_flipy "
+ "GL_CHROMIUM_map_sub "
+ "GL_CHROMIUM_shallow_flush "
"GL_EXT_unpack_subimage";
break;
default:
« no previous file with comments | « gpu/command_buffer/client/gles2_c_lib_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698