| 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 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1482 glPostSubBufferCHROMIUM(x, y, width, height); | 1482 glPostSubBufferCHROMIUM(x, y, width, height); |
| 1483 } | 1483 } |
| 1484 void MojoGLES2Impl::TexImageIOSurface2DCHROMIUM(GLenum target, | 1484 void MojoGLES2Impl::TexImageIOSurface2DCHROMIUM(GLenum target, |
| 1485 GLsizei width, | 1485 GLsizei width, |
| 1486 GLsizei height, | 1486 GLsizei height, |
| 1487 GLuint ioSurfaceId, | 1487 GLuint ioSurfaceId, |
| 1488 GLuint plane) { | 1488 GLuint plane) { |
| 1489 MojoGLES2MakeCurrent(context_); | 1489 MojoGLES2MakeCurrent(context_); |
| 1490 glTexImageIOSurface2DCHROMIUM(target, width, height, ioSurfaceId, plane); | 1490 glTexImageIOSurface2DCHROMIUM(target, width, height, ioSurfaceId, plane); |
| 1491 } | 1491 } |
| 1492 void MojoGLES2Impl::CopyTextureCHROMIUM(GLenum target, | 1492 void MojoGLES2Impl::CopyTextureCHROMIUM(GLenum source_id, |
| 1493 GLenum source_id, | |
| 1494 GLenum dest_id, | 1493 GLenum dest_id, |
| 1495 GLint internalformat, | 1494 GLint internalformat, |
| 1496 GLenum dest_type, | 1495 GLenum dest_type, |
| 1497 GLboolean unpack_flip_y, | 1496 GLboolean unpack_flip_y, |
| 1498 GLboolean unpack_premultiply_alpha, | 1497 GLboolean unpack_premultiply_alpha, |
| 1499 GLboolean unpack_unmultiply_alpha) { | 1498 GLboolean unpack_unmultiply_alpha) { |
| 1500 MojoGLES2MakeCurrent(context_); | 1499 MojoGLES2MakeCurrent(context_); |
| 1501 glCopyTextureCHROMIUM(target, source_id, dest_id, internalformat, dest_type, | 1500 glCopyTextureCHROMIUM(source_id, dest_id, internalformat, dest_type, |
| 1502 unpack_flip_y, unpack_premultiply_alpha, | 1501 unpack_flip_y, unpack_premultiply_alpha, |
| 1503 unpack_unmultiply_alpha); | 1502 unpack_unmultiply_alpha); |
| 1504 } | 1503 } |
| 1505 void MojoGLES2Impl::CopySubTextureCHROMIUM(GLenum target, | 1504 void MojoGLES2Impl::CopySubTextureCHROMIUM(GLenum source_id, |
| 1506 GLenum source_id, | |
| 1507 GLenum dest_id, | 1505 GLenum dest_id, |
| 1508 GLint xoffset, | 1506 GLint xoffset, |
| 1509 GLint yoffset, | 1507 GLint yoffset, |
| 1510 GLint x, | 1508 GLint x, |
| 1511 GLint y, | 1509 GLint y, |
| 1512 GLsizei width, | 1510 GLsizei width, |
| 1513 GLsizei height, | 1511 GLsizei height, |
| 1514 GLboolean unpack_flip_y, | 1512 GLboolean unpack_flip_y, |
| 1515 GLboolean unpack_premultiply_alpha, | 1513 GLboolean unpack_premultiply_alpha, |
| 1516 GLboolean unpack_unmultiply_alpha) { | 1514 GLboolean unpack_unmultiply_alpha) { |
| 1517 MojoGLES2MakeCurrent(context_); | 1515 MojoGLES2MakeCurrent(context_); |
| 1518 glCopySubTextureCHROMIUM(target, source_id, dest_id, xoffset, yoffset, x, y, | 1516 glCopySubTextureCHROMIUM(source_id, dest_id, xoffset, yoffset, x, y, width, |
| 1519 width, height, unpack_flip_y, | 1517 height, unpack_flip_y, unpack_premultiply_alpha, |
| 1520 unpack_premultiply_alpha, unpack_unmultiply_alpha); | 1518 unpack_unmultiply_alpha); |
| 1521 } | 1519 } |
| 1522 void MojoGLES2Impl::CompressedCopyTextureCHROMIUM(GLenum target, | 1520 void MojoGLES2Impl::CompressedCopyTextureCHROMIUM(GLenum target, |
| 1523 GLenum source_id, | 1521 GLenum source_id, |
| 1524 GLenum dest_id) { | 1522 GLenum dest_id) { |
| 1525 MojoGLES2MakeCurrent(context_); | 1523 MojoGLES2MakeCurrent(context_); |
| 1526 glCompressedCopyTextureCHROMIUM(target, source_id, dest_id); | 1524 glCompressedCopyTextureCHROMIUM(target, source_id, dest_id); |
| 1527 } | 1525 } |
| 1528 void MojoGLES2Impl::CompressedCopySubTextureCHROMIUM(GLenum target, | 1526 void MojoGLES2Impl::CompressedCopySubTextureCHROMIUM(GLenum target, |
| 1529 GLenum source_id, | 1527 GLenum source_id, |
| 1530 GLenum dest_id, | 1528 GLenum dest_id, |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1936 const char* name) { | 1934 const char* name) { |
| 1937 MojoGLES2MakeCurrent(context_); | 1935 MojoGLES2MakeCurrent(context_); |
| 1938 glBindFragDataLocationEXT(program, colorNumber, name); | 1936 glBindFragDataLocationEXT(program, colorNumber, name); |
| 1939 } | 1937 } |
| 1940 GLint MojoGLES2Impl::GetFragDataIndexEXT(GLuint program, const char* name) { | 1938 GLint MojoGLES2Impl::GetFragDataIndexEXT(GLuint program, const char* name) { |
| 1941 MojoGLES2MakeCurrent(context_); | 1939 MojoGLES2MakeCurrent(context_); |
| 1942 return glGetFragDataIndexEXT(program, name); | 1940 return glGetFragDataIndexEXT(program, name); |
| 1943 } | 1941 } |
| 1944 | 1942 |
| 1945 } // namespace mojo | 1943 } // namespace mojo |
| OLD | NEW |