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 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1403 MojoGLES2MakeCurrent(context_); | 1403 MojoGLES2MakeCurrent(context_); |
1404 return glMapTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width, | 1404 return glMapTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width, |
1405 height, format, type, access); | 1405 height, format, type, access); |
1406 } | 1406 } |
1407 void MojoGLES2Impl::UnmapTexSubImage2DCHROMIUM(const void* mem) { | 1407 void MojoGLES2Impl::UnmapTexSubImage2DCHROMIUM(const void* mem) { |
1408 MojoGLES2MakeCurrent(context_); | 1408 MojoGLES2MakeCurrent(context_); |
1409 glUnmapTexSubImage2DCHROMIUM(mem); | 1409 glUnmapTexSubImage2DCHROMIUM(mem); |
1410 } | 1410 } |
1411 void MojoGLES2Impl::ResizeCHROMIUM(GLuint width, | 1411 void MojoGLES2Impl::ResizeCHROMIUM(GLuint width, |
1412 GLuint height, | 1412 GLuint height, |
1413 GLfloat scale_factor) { | 1413 GLfloat scale_factor, |
| 1414 GLboolean alpha) { |
1414 MojoGLES2MakeCurrent(context_); | 1415 MojoGLES2MakeCurrent(context_); |
1415 glResizeCHROMIUM(width, height, scale_factor); | 1416 glResizeCHROMIUM(width, height, scale_factor, alpha); |
1416 } | 1417 } |
1417 const GLchar* MojoGLES2Impl::GetRequestableExtensionsCHROMIUM() { | 1418 const GLchar* MojoGLES2Impl::GetRequestableExtensionsCHROMIUM() { |
1418 MojoGLES2MakeCurrent(context_); | 1419 MojoGLES2MakeCurrent(context_); |
1419 return glGetRequestableExtensionsCHROMIUM(); | 1420 return glGetRequestableExtensionsCHROMIUM(); |
1420 } | 1421 } |
1421 void MojoGLES2Impl::RequestExtensionCHROMIUM(const char* extension) { | 1422 void MojoGLES2Impl::RequestExtensionCHROMIUM(const char* extension) { |
1422 MojoGLES2MakeCurrent(context_); | 1423 MojoGLES2MakeCurrent(context_); |
1423 glRequestExtensionCHROMIUM(extension); | 1424 glRequestExtensionCHROMIUM(extension); |
1424 } | 1425 } |
1425 void MojoGLES2Impl::GetProgramInfoCHROMIUM(GLuint program, | 1426 void MojoGLES2Impl::GetProgramInfoCHROMIUM(GLuint program, |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1899 void MojoGLES2Impl::BlendBarrierKHR() { | 1900 void MojoGLES2Impl::BlendBarrierKHR() { |
1900 MojoGLES2MakeCurrent(context_); | 1901 MojoGLES2MakeCurrent(context_); |
1901 glBlendBarrierKHR(); | 1902 glBlendBarrierKHR(); |
1902 } | 1903 } |
1903 void MojoGLES2Impl::ApplyScreenSpaceAntialiasingCHROMIUM() { | 1904 void MojoGLES2Impl::ApplyScreenSpaceAntialiasingCHROMIUM() { |
1904 MojoGLES2MakeCurrent(context_); | 1905 MojoGLES2MakeCurrent(context_); |
1905 glApplyScreenSpaceAntialiasingCHROMIUM(); | 1906 glApplyScreenSpaceAntialiasingCHROMIUM(); |
1906 } | 1907 } |
1907 | 1908 |
1908 } // namespace mojo | 1909 } // namespace mojo |
OLD | NEW |