| 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 1669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1680 void MojoGLES2Impl::DrawBuffersEXT(GLsizei count, const GLenum* bufs) { | 1680 void MojoGLES2Impl::DrawBuffersEXT(GLsizei count, const GLenum* bufs) { |
| 1681 MojoGLES2MakeCurrent(context_); | 1681 MojoGLES2MakeCurrent(context_); |
| 1682 glDrawBuffersEXT(count, bufs); | 1682 glDrawBuffersEXT(count, bufs); |
| 1683 } | 1683 } |
| 1684 void MojoGLES2Impl::DiscardBackbufferCHROMIUM() { | 1684 void MojoGLES2Impl::DiscardBackbufferCHROMIUM() { |
| 1685 MojoGLES2MakeCurrent(context_); | 1685 MojoGLES2MakeCurrent(context_); |
| 1686 glDiscardBackbufferCHROMIUM(); | 1686 glDiscardBackbufferCHROMIUM(); |
| 1687 } | 1687 } |
| 1688 void MojoGLES2Impl::ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order, | 1688 void MojoGLES2Impl::ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order, |
| 1689 GLenum plane_transform, | 1689 GLenum plane_transform, |
| 1690 GLuint storage_format, |
| 1690 GLuint overlay_texture_id, | 1691 GLuint overlay_texture_id, |
| 1691 GLint bounds_x, | 1692 GLint bounds_x, |
| 1692 GLint bounds_y, | 1693 GLint bounds_y, |
| 1693 GLint bounds_width, | 1694 GLint bounds_width, |
| 1694 GLint bounds_height, | 1695 GLint bounds_height, |
| 1695 GLfloat uv_x, | 1696 GLfloat uv_x, |
| 1696 GLfloat uv_y, | 1697 GLfloat uv_y, |
| 1697 GLfloat uv_width, | 1698 GLfloat uv_width, |
| 1698 GLfloat uv_height) { | 1699 GLfloat uv_height, |
| 1700 GLboolean handle_scaling) { |
| 1699 MojoGLES2MakeCurrent(context_); | 1701 MojoGLES2MakeCurrent(context_); |
| 1700 glScheduleOverlayPlaneCHROMIUM( | 1702 glScheduleOverlayPlaneCHROMIUM(plane_z_order, plane_transform, storage_format, |
| 1701 plane_z_order, plane_transform, overlay_texture_id, bounds_x, bounds_y, | 1703 overlay_texture_id, bounds_x, bounds_y, |
| 1702 bounds_width, bounds_height, uv_x, uv_y, uv_width, uv_height); | 1704 bounds_width, bounds_height, uv_x, uv_y, |
| 1705 uv_width, uv_height, handle_scaling); |
| 1703 } | 1706 } |
| 1704 void MojoGLES2Impl::ScheduleCALayerCHROMIUM(GLuint contents_texture_id, | 1707 void MojoGLES2Impl::ScheduleCALayerCHROMIUM(GLuint contents_texture_id, |
| 1705 const GLfloat* contents_rect, | 1708 const GLfloat* contents_rect, |
| 1706 GLfloat opacity, | 1709 GLfloat opacity, |
| 1707 const GLuint background_color, | 1710 const GLuint background_color, |
| 1708 const GLfloat* bounds_size, | 1711 const GLfloat* bounds_size, |
| 1709 const GLfloat* transform) { | 1712 const GLfloat* transform) { |
| 1710 MojoGLES2MakeCurrent(context_); | 1713 MojoGLES2MakeCurrent(context_); |
| 1711 glScheduleCALayerCHROMIUM(contents_texture_id, contents_rect, opacity, | 1714 glScheduleCALayerCHROMIUM(contents_texture_id, contents_rect, opacity, |
| 1712 background_color, bounds_size, transform); | 1715 background_color, bounds_size, transform); |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1926 const char* name) { | 1929 const char* name) { |
| 1927 MojoGLES2MakeCurrent(context_); | 1930 MojoGLES2MakeCurrent(context_); |
| 1928 glBindFragDataLocationEXT(program, colorNumber, name); | 1931 glBindFragDataLocationEXT(program, colorNumber, name); |
| 1929 } | 1932 } |
| 1930 GLint MojoGLES2Impl::GetFragDataIndexEXT(GLuint program, const char* name) { | 1933 GLint MojoGLES2Impl::GetFragDataIndexEXT(GLuint program, const char* name) { |
| 1931 MojoGLES2MakeCurrent(context_); | 1934 MojoGLES2MakeCurrent(context_); |
| 1932 return glGetFragDataIndexEXT(program, name); | 1935 return glGetFragDataIndexEXT(program, name); |
| 1933 } | 1936 } |
| 1934 | 1937 |
| 1935 } // namespace mojo | 1938 } // namespace mojo |
| OLD | NEW |