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