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

Unified Diff: gpu/command_buffer/client/gles2_implementation_impl_autogen.h

Issue 2221173002: Implementing FlushMappedBufferRange in GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: attempt to fix win build Created 4 years, 2 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_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("

Powered by Google App Engine
This is Rietveld 408576698