Chromium Code Reviews| 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 d6f77231b66493c2122e91ce23c1850cca97d5b5..de3af20fecb8d5928bb9e1de21e8cc8c50ffe391 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,6 +2128,7 @@ const GLubyte* GLES2Implementation::GetStringHelper(GLenum name) { |
| switch (name) { |
| case GL_EXTENSIONS: |
| str += std::string(str.empty() ? "" : " ") + |
| + "GL_CHROMIUM_shallow_flush " |
|
brianderson
2012/07/19 03:29:44
The extension is advertised here and I double chec
|
| "GL_CHROMIUM_map_sub " |
| "GL_CHROMIUM_flipy " |
| "GL_EXT_unpack_subimage"; |