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 1686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1697 GLfloat uv_width, | 1697 GLfloat uv_width, |
1698 GLfloat uv_height) { | 1698 GLfloat uv_height) { |
1699 MojoGLES2MakeCurrent(context_); | 1699 MojoGLES2MakeCurrent(context_); |
1700 glScheduleOverlayPlaneCHROMIUM( | 1700 glScheduleOverlayPlaneCHROMIUM( |
1701 plane_z_order, plane_transform, overlay_texture_id, bounds_x, bounds_y, | 1701 plane_z_order, plane_transform, overlay_texture_id, bounds_x, bounds_y, |
1702 bounds_width, bounds_height, uv_x, uv_y, uv_width, uv_height); | 1702 bounds_width, bounds_height, uv_x, uv_y, uv_width, uv_height); |
1703 } | 1703 } |
1704 void MojoGLES2Impl::ScheduleCALayerCHROMIUM(GLuint contents_texture_id, | 1704 void MojoGLES2Impl::ScheduleCALayerCHROMIUM(GLuint contents_texture_id, |
1705 const GLfloat* contents_rect, | 1705 const GLfloat* contents_rect, |
1706 GLfloat opacity, | 1706 GLfloat opacity, |
1707 const GLuint background_color, | 1707 GLuint background_color, |
1708 const GLfloat* bounds_size, | 1708 GLuint edge_aa_mask, |
| 1709 const GLfloat* bounds_rect, |
| 1710 GLboolean is_clipped, |
| 1711 const GLfloat* clip_rect, |
| 1712 GLint sorting_context_id, |
1709 const GLfloat* transform) { | 1713 const GLfloat* transform) { |
1710 MojoGLES2MakeCurrent(context_); | 1714 MojoGLES2MakeCurrent(context_); |
1711 glScheduleCALayerCHROMIUM(contents_texture_id, contents_rect, opacity, | 1715 glScheduleCALayerCHROMIUM(contents_texture_id, contents_rect, opacity, |
1712 background_color, bounds_size, transform); | 1716 background_color, edge_aa_mask, bounds_rect, |
| 1717 is_clipped, clip_rect, sorting_context_id, |
| 1718 transform); |
1713 } | 1719 } |
1714 void MojoGLES2Impl::CommitOverlayPlanesCHROMIUM() { | 1720 void MojoGLES2Impl::CommitOverlayPlanesCHROMIUM() { |
1715 MojoGLES2MakeCurrent(context_); | 1721 MojoGLES2MakeCurrent(context_); |
1716 glCommitOverlayPlanesCHROMIUM(); | 1722 glCommitOverlayPlanesCHROMIUM(); |
1717 } | 1723 } |
1718 void MojoGLES2Impl::SwapInterval(GLint interval) { | 1724 void MojoGLES2Impl::SwapInterval(GLint interval) { |
1719 MojoGLES2MakeCurrent(context_); | 1725 MojoGLES2MakeCurrent(context_); |
1720 glSwapInterval(interval); | 1726 glSwapInterval(interval); |
1721 } | 1727 } |
1722 void MojoGLES2Impl::FlushDriverCachesCHROMIUM() { | 1728 void MojoGLES2Impl::FlushDriverCachesCHROMIUM() { |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1926 const char* name) { | 1932 const char* name) { |
1927 MojoGLES2MakeCurrent(context_); | 1933 MojoGLES2MakeCurrent(context_); |
1928 glBindFragDataLocationEXT(program, colorNumber, name); | 1934 glBindFragDataLocationEXT(program, colorNumber, name); |
1929 } | 1935 } |
1930 GLint MojoGLES2Impl::GetFragDataIndexEXT(GLuint program, const char* name) { | 1936 GLint MojoGLES2Impl::GetFragDataIndexEXT(GLuint program, const char* name) { |
1931 MojoGLES2MakeCurrent(context_); | 1937 MojoGLES2MakeCurrent(context_); |
1932 return glGetFragDataIndexEXT(program, name); | 1938 return glGetFragDataIndexEXT(program, name); |
1933 } | 1939 } |
1934 | 1940 |
1935 } // namespace mojo | 1941 } // namespace mojo |
OLD | NEW |