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 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1516 glCopySubTextureCHROMIUM(source_id, dest_id, xoffset, yoffset, x, y, width, | 1516 glCopySubTextureCHROMIUM(source_id, dest_id, xoffset, yoffset, x, y, width, |
1517 height, unpack_flip_y, unpack_premultiply_alpha, | 1517 height, unpack_flip_y, unpack_premultiply_alpha, |
1518 unpack_unmultiply_alpha); | 1518 unpack_unmultiply_alpha); |
1519 } | 1519 } |
1520 void MojoGLES2Impl::CompressedCopyTextureCHROMIUM(GLenum target, | 1520 void MojoGLES2Impl::CompressedCopyTextureCHROMIUM(GLenum target, |
1521 GLenum source_id, | 1521 GLenum source_id, |
1522 GLenum dest_id) { | 1522 GLenum dest_id) { |
1523 MojoGLES2MakeCurrent(context_); | 1523 MojoGLES2MakeCurrent(context_); |
1524 glCompressedCopyTextureCHROMIUM(target, source_id, dest_id); | 1524 glCompressedCopyTextureCHROMIUM(target, source_id, dest_id); |
1525 } | 1525 } |
1526 void MojoGLES2Impl::CompressedCopySubTextureCHROMIUM(GLenum target, | |
1527 GLenum source_id, | |
1528 GLenum dest_id, | |
1529 GLint xoffset, | |
1530 GLint yoffset, | |
1531 GLint x, | |
1532 GLint y, | |
1533 GLsizei width, | |
1534 GLsizei height) { | |
1535 MojoGLES2MakeCurrent(context_); | |
1536 glCompressedCopySubTextureCHROMIUM(target, source_id, dest_id, xoffset, | |
1537 yoffset, x, y, width, height); | |
1538 } | |
1539 void MojoGLES2Impl::DrawArraysInstancedANGLE(GLenum mode, | 1526 void MojoGLES2Impl::DrawArraysInstancedANGLE(GLenum mode, |
1540 GLint first, | 1527 GLint first, |
1541 GLsizei count, | 1528 GLsizei count, |
1542 GLsizei primcount) { | 1529 GLsizei primcount) { |
1543 MojoGLES2MakeCurrent(context_); | 1530 MojoGLES2MakeCurrent(context_); |
1544 glDrawArraysInstancedANGLE(mode, first, count, primcount); | 1531 glDrawArraysInstancedANGLE(mode, first, count, primcount); |
1545 } | 1532 } |
1546 void MojoGLES2Impl::DrawElementsInstancedANGLE(GLenum mode, | 1533 void MojoGLES2Impl::DrawElementsInstancedANGLE(GLenum mode, |
1547 GLsizei count, | 1534 GLsizei count, |
1548 GLenum type, | 1535 GLenum type, |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1934 const char* name) { | 1921 const char* name) { |
1935 MojoGLES2MakeCurrent(context_); | 1922 MojoGLES2MakeCurrent(context_); |
1936 glBindFragDataLocationEXT(program, colorNumber, name); | 1923 glBindFragDataLocationEXT(program, colorNumber, name); |
1937 } | 1924 } |
1938 GLint MojoGLES2Impl::GetFragDataIndexEXT(GLuint program, const char* name) { | 1925 GLint MojoGLES2Impl::GetFragDataIndexEXT(GLuint program, const char* name) { |
1939 MojoGLES2MakeCurrent(context_); | 1926 MojoGLES2MakeCurrent(context_); |
1940 return glGetFragDataIndexEXT(program, name); | 1927 return glGetFragDataIndexEXT(program, name); |
1941 } | 1928 } |
1942 | 1929 |
1943 } // namespace mojo | 1930 } // namespace mojo |
OLD | NEW |