Index: gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
diff --git a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
index 3e88259e085ce3faaff2eb9344655bf4979ecd7f..679822032ddf8c633dc779aafb744ac5eeb897b8 100644 |
--- a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
+++ b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
@@ -3075,6 +3075,25 @@ void GLES2Implementation::BindVertexArrayOES(GLuint array) { |
CheckGLError(); |
} |
+void GLES2Implementation::FlushMappedBufferRange(GLenum target, |
+ GLintptr offset, |
+ GLsizeiptr size) { |
+ GPU_CLIENT_SINGLE_THREAD_CHECK(); |
+ GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glFlushMappedBufferRange(" |
+ << GLES2Util::GetStringBufferTarget(target) << ", " |
+ << offset << ", " << size << ")"); |
+ if (offset < 0) { |
+ SetGLError(GL_INVALID_VALUE, "glFlushMappedBufferRange", "offset < 0"); |
+ return; |
+ } |
+ if (size < 0) { |
+ SetGLError(GL_INVALID_VALUE, "glFlushMappedBufferRange", "size < 0"); |
+ return; |
+ } |
+ helper_->FlushMappedBufferRange(target, offset, size); |
+ CheckGLError(); |
+} |
+ |
void GLES2Implementation::DescheduleUntilFinishedCHROMIUM() { |
GPU_CLIENT_SINGLE_THREAD_CHECK(); |
GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glDescheduleUntilFinishedCHROMIUM(" |