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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 1959513003: Fix a bug related with indexed buffer binding. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tf
Patch Set: Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « content/test/gpu/gpu_tests/webgl2_conformance_expectations.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include <limits.h> 7 #include <limits.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 4932 matching lines...) Expand 10 before | Expand all | Expand 10 after
4943 case kBindBufferBase: 4943 case kBindBufferBase:
4944 bindings->DoBindBufferBase(target, index, buffer); 4944 bindings->DoBindBufferBase(target, index, buffer);
4945 break; 4945 break;
4946 case kBindBufferRange: 4946 case kBindBufferRange:
4947 bindings->DoBindBufferRange(target, index, buffer, offset, size); 4947 bindings->DoBindBufferRange(target, index, buffer, offset, size);
4948 break; 4948 break;
4949 default: 4949 default:
4950 NOTREACHED(); 4950 NOTREACHED();
4951 break; 4951 break;
4952 } 4952 }
4953 state_.SetBoundBuffer(target, buffer);
4953 } 4954 }
4954 4955
4955 void GLES2DecoderImpl::DoBindBufferBase(GLenum target, GLuint index, 4956 void GLES2DecoderImpl::DoBindBufferBase(GLenum target, GLuint index,
4956 GLuint client_id) { 4957 GLuint client_id) {
4957 BindIndexedBufferImpl(target, index, client_id, 0, 0, 4958 BindIndexedBufferImpl(target, index, client_id, 0, 0,
4958 kBindBufferBase, "glBindBufferBase"); 4959 kBindBufferBase, "glBindBufferBase");
4959 } 4960 }
4960 4961
4961 void GLES2DecoderImpl::DoBindBufferRange(GLenum target, GLuint index, 4962 void GLES2DecoderImpl::DoBindBufferRange(GLenum target, GLuint index,
4962 GLuint client_id, 4963 GLuint client_id,
(...skipping 11823 matching lines...) Expand 10 before | Expand all | Expand 10 after
16786 } 16787 }
16787 16788
16788 // Include the auto-generated part of this file. We split this because it means 16789 // Include the auto-generated part of this file. We split this because it means
16789 // we can easily edit the non-auto generated parts right here in this file 16790 // we can easily edit the non-auto generated parts right here in this file
16790 // instead of having to edit some template or the code generator. 16791 // instead of having to edit some template or the code generator.
16791 #include "base/macros.h" 16792 #include "base/macros.h"
16792 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 16793 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
16793 16794
16794 } // namespace gles2 16795 } // namespace gles2
16795 } // namespace gpu 16796 } // namespace gpu
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/webgl2_conformance_expectations.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698