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 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1623 void MojoGLES2Impl::DiscardFramebufferEXT(GLenum target, | 1623 void MojoGLES2Impl::DiscardFramebufferEXT(GLenum target, |
1624 GLsizei count, | 1624 GLsizei count, |
1625 const GLenum* attachments) { | 1625 const GLenum* attachments) { |
1626 MojoGLES2MakeCurrent(context_); | 1626 MojoGLES2MakeCurrent(context_); |
1627 glDiscardFramebufferEXT(target, count, attachments); | 1627 glDiscardFramebufferEXT(target, count, attachments); |
1628 } | 1628 } |
1629 void MojoGLES2Impl::LoseContextCHROMIUM(GLenum current, GLenum other) { | 1629 void MojoGLES2Impl::LoseContextCHROMIUM(GLenum current, GLenum other) { |
1630 MojoGLES2MakeCurrent(context_); | 1630 MojoGLES2MakeCurrent(context_); |
1631 glLoseContextCHROMIUM(current, other); | 1631 glLoseContextCHROMIUM(current, other); |
1632 } | 1632 } |
1633 GLuint MojoGLES2Impl::InsertSyncPointCHROMIUM() { | |
1634 MojoGLES2MakeCurrent(context_); | |
1635 return glInsertSyncPointCHROMIUM(); | |
1636 } | |
1637 void MojoGLES2Impl::WaitSyncPointCHROMIUM(GLuint sync_point) { | |
1638 MojoGLES2MakeCurrent(context_); | |
1639 glWaitSyncPointCHROMIUM(sync_point); | |
1640 } | |
1641 GLuint64 MojoGLES2Impl::InsertFenceSyncCHROMIUM() { | 1633 GLuint64 MojoGLES2Impl::InsertFenceSyncCHROMIUM() { |
1642 MojoGLES2MakeCurrent(context_); | 1634 MojoGLES2MakeCurrent(context_); |
1643 return glInsertFenceSyncCHROMIUM(); | 1635 return glInsertFenceSyncCHROMIUM(); |
1644 } | 1636 } |
1645 void MojoGLES2Impl::GenSyncTokenCHROMIUM(GLuint64 fence_sync, | 1637 void MojoGLES2Impl::GenSyncTokenCHROMIUM(GLuint64 fence_sync, |
1646 GLbyte* sync_token) { | 1638 GLbyte* sync_token) { |
1647 MojoGLES2MakeCurrent(context_); | 1639 MojoGLES2MakeCurrent(context_); |
1648 glGenSyncTokenCHROMIUM(fence_sync, sync_token); | 1640 glGenSyncTokenCHROMIUM(fence_sync, sync_token); |
1649 } | 1641 } |
1650 void MojoGLES2Impl::GenUnverifiedSyncTokenCHROMIUM(GLuint64 fence_sync, | 1642 void MojoGLES2Impl::GenUnverifiedSyncTokenCHROMIUM(GLuint64 fence_sync, |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1920 const char* name) { | 1912 const char* name) { |
1921 MojoGLES2MakeCurrent(context_); | 1913 MojoGLES2MakeCurrent(context_); |
1922 glBindFragDataLocationEXT(program, colorNumber, name); | 1914 glBindFragDataLocationEXT(program, colorNumber, name); |
1923 } | 1915 } |
1924 GLint MojoGLES2Impl::GetFragDataIndexEXT(GLuint program, const char* name) { | 1916 GLint MojoGLES2Impl::GetFragDataIndexEXT(GLuint program, const char* name) { |
1925 MojoGLES2MakeCurrent(context_); | 1917 MojoGLES2MakeCurrent(context_); |
1926 return glGetFragDataIndexEXT(program, name); | 1918 return glGetFragDataIndexEXT(program, name); |
1927 } | 1919 } |
1928 | 1920 |
1929 } // namespace mojo | 1921 } // namespace mojo |
OLD | NEW |