| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file is auto-generated from | 5 // This file is auto-generated from |
| 6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
| 7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
| 8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
| 9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
| 10 | 10 |
| (...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1569 const GLbyte* mailbox) { | 1569 const GLbyte* mailbox) { |
| 1570 MojoGLES2MakeCurrent(context_); | 1570 MojoGLES2MakeCurrent(context_); |
| 1571 return glCreateAndConsumeTextureCHROMIUM(target, mailbox); | 1571 return glCreateAndConsumeTextureCHROMIUM(target, mailbox); |
| 1572 } | 1572 } |
| 1573 void MojoGLES2Impl::BindUniformLocationCHROMIUM(GLuint program, | 1573 void MojoGLES2Impl::BindUniformLocationCHROMIUM(GLuint program, |
| 1574 GLint location, | 1574 GLint location, |
| 1575 const char* name) { | 1575 const char* name) { |
| 1576 MojoGLES2MakeCurrent(context_); | 1576 MojoGLES2MakeCurrent(context_); |
| 1577 glBindUniformLocationCHROMIUM(program, location, name); | 1577 glBindUniformLocationCHROMIUM(program, location, name); |
| 1578 } | 1578 } |
| 1579 void MojoGLES2Impl::GenValuebuffersCHROMIUM(GLsizei n, GLuint* buffers) { | |
| 1580 MojoGLES2MakeCurrent(context_); | |
| 1581 glGenValuebuffersCHROMIUM(n, buffers); | |
| 1582 } | |
| 1583 void MojoGLES2Impl::DeleteValuebuffersCHROMIUM(GLsizei n, | |
| 1584 const GLuint* valuebuffers) { | |
| 1585 MojoGLES2MakeCurrent(context_); | |
| 1586 glDeleteValuebuffersCHROMIUM(n, valuebuffers); | |
| 1587 } | |
| 1588 GLboolean MojoGLES2Impl::IsValuebufferCHROMIUM(GLuint valuebuffer) { | |
| 1589 MojoGLES2MakeCurrent(context_); | |
| 1590 return glIsValuebufferCHROMIUM(valuebuffer); | |
| 1591 } | |
| 1592 void MojoGLES2Impl::BindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer) { | |
| 1593 MojoGLES2MakeCurrent(context_); | |
| 1594 glBindValuebufferCHROMIUM(target, valuebuffer); | |
| 1595 } | |
| 1596 void MojoGLES2Impl::SubscribeValueCHROMIUM(GLenum target, GLenum subscription) { | |
| 1597 MojoGLES2MakeCurrent(context_); | |
| 1598 glSubscribeValueCHROMIUM(target, subscription); | |
| 1599 } | |
| 1600 void MojoGLES2Impl::PopulateSubscribedValuesCHROMIUM(GLenum target) { | |
| 1601 MojoGLES2MakeCurrent(context_); | |
| 1602 glPopulateSubscribedValuesCHROMIUM(target); | |
| 1603 } | |
| 1604 void MojoGLES2Impl::UniformValuebufferCHROMIUM(GLint location, | |
| 1605 GLenum target, | |
| 1606 GLenum subscription) { | |
| 1607 MojoGLES2MakeCurrent(context_); | |
| 1608 glUniformValuebufferCHROMIUM(location, target, subscription); | |
| 1609 } | |
| 1610 void MojoGLES2Impl::BindTexImage2DCHROMIUM(GLenum target, GLint imageId) { | 1579 void MojoGLES2Impl::BindTexImage2DCHROMIUM(GLenum target, GLint imageId) { |
| 1611 MojoGLES2MakeCurrent(context_); | 1580 MojoGLES2MakeCurrent(context_); |
| 1612 glBindTexImage2DCHROMIUM(target, imageId); | 1581 glBindTexImage2DCHROMIUM(target, imageId); |
| 1613 } | 1582 } |
| 1614 void MojoGLES2Impl::ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) { | 1583 void MojoGLES2Impl::ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) { |
| 1615 MojoGLES2MakeCurrent(context_); | 1584 MojoGLES2MakeCurrent(context_); |
| 1616 glReleaseTexImage2DCHROMIUM(target, imageId); | 1585 glReleaseTexImage2DCHROMIUM(target, imageId); |
| 1617 } | 1586 } |
| 1618 void MojoGLES2Impl::TraceBeginCHROMIUM(const char* category_name, | 1587 void MojoGLES2Impl::TraceBeginCHROMIUM(const char* category_name, |
| 1619 const char* trace_name) { | 1588 const char* trace_name) { |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1928 void MojoGLES2Impl::UniformMatrix4fvStreamTextureMatrixCHROMIUM( | 1897 void MojoGLES2Impl::UniformMatrix4fvStreamTextureMatrixCHROMIUM( |
| 1929 GLint location, | 1898 GLint location, |
| 1930 GLboolean transpose, | 1899 GLboolean transpose, |
| 1931 const GLfloat* default_value) { | 1900 const GLfloat* default_value) { |
| 1932 MojoGLES2MakeCurrent(context_); | 1901 MojoGLES2MakeCurrent(context_); |
| 1933 glUniformMatrix4fvStreamTextureMatrixCHROMIUM(location, transpose, | 1902 glUniformMatrix4fvStreamTextureMatrixCHROMIUM(location, transpose, |
| 1934 default_value); | 1903 default_value); |
| 1935 } | 1904 } |
| 1936 | 1905 |
| 1937 } // namespace mojo | 1906 } // namespace mojo |
| OLD | NEW |