| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |