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

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

Issue 850793004: Update from https://crrev.com/311346 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 23eb9668011fbbadc30d05fe807414659e63e82a..95ca175178056f76443b3b7a19a58c99dfbd7811 100644
--- a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
+++ b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h
@@ -49,6 +49,32 @@ void GLES2Implementation::BindBufferBase(GLenum target,
CheckGLError();
}
+void GLES2Implementation::BindBufferRange(GLenum target,
+ GLuint index,
+ GLuint buffer,
+ GLintptr offset,
+ GLsizeiptr size) {
+ GPU_CLIENT_SINGLE_THREAD_CHECK();
+ GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glBindBufferRange("
+ << GLES2Util::GetStringIndexedBufferTarget(target) << ", "
+ << index << ", " << buffer << ", " << offset << ", "
+ << size << ")");
+ if (offset < 0) {
+ SetGLError(GL_INVALID_VALUE, "glBindBufferRange", "offset < 0");
+ return;
+ }
+ if (size < 0) {
+ SetGLError(GL_INVALID_VALUE, "glBindBufferRange", "size < 0");
+ return;
+ }
+ if (IsBufferReservedId(buffer)) {
+ SetGLError(GL_INVALID_OPERATION, "BindBufferRange", "buffer reserved id");
+ return;
+ }
+ BindBufferRangeHelper(target, index, buffer, offset, size);
+ CheckGLError();
+}
+
void GLES2Implementation::BindFramebuffer(GLenum target, GLuint framebuffer) {
GPU_CLIENT_SINGLE_THREAD_CHECK();
GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glBindFramebuffer("

Powered by Google App Engine
This is Rietveld 408576698