| 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 |
| 11 #include "mojo/gpu/mojo_gles2_impl_autogen.h" | 11 #include "mojo/gpu/mojo_gles2_impl_autogen.h" |
| 12 | 12 |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_extension.h" | 14 #include "mojo/public/c/gles2/chromium_extension.h" |
| 15 #include "third_party/mojo/src/mojo/public/c/gles2/gles2.h" | 15 #include "mojo/public/c/gles2/gles2.h" |
| 16 | 16 |
| 17 namespace mojo { | 17 namespace mojo { |
| 18 | 18 |
| 19 void MojoGLES2Impl::ActiveTexture(GLenum texture) { | 19 void MojoGLES2Impl::ActiveTexture(GLenum texture) { |
| 20 MojoGLES2MakeCurrent(context_); | 20 MojoGLES2MakeCurrent(context_); |
| 21 glActiveTexture(texture); | 21 glActiveTexture(texture); |
| 22 } | 22 } |
| 23 void MojoGLES2Impl::AttachShader(GLuint program, GLuint shader) { | 23 void MojoGLES2Impl::AttachShader(GLuint program, GLuint shader) { |
| 24 MojoGLES2MakeCurrent(context_); | 24 MojoGLES2MakeCurrent(context_); |
| 25 glAttachShader(program, shader); | 25 glAttachShader(program, shader); |
| (...skipping 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1903 void MojoGLES2Impl::BlendBarrierKHR() { | 1903 void MojoGLES2Impl::BlendBarrierKHR() { |
| 1904 MojoGLES2MakeCurrent(context_); | 1904 MojoGLES2MakeCurrent(context_); |
| 1905 glBlendBarrierKHR(); | 1905 glBlendBarrierKHR(); |
| 1906 } | 1906 } |
| 1907 void MojoGLES2Impl::ApplyScreenSpaceAntialiasingCHROMIUM() { | 1907 void MojoGLES2Impl::ApplyScreenSpaceAntialiasingCHROMIUM() { |
| 1908 MojoGLES2MakeCurrent(context_); | 1908 MojoGLES2MakeCurrent(context_); |
| 1909 glApplyScreenSpaceAntialiasingCHROMIUM(); | 1909 glApplyScreenSpaceAntialiasingCHROMIUM(); |
| 1910 } | 1910 } |
| 1911 | 1911 |
| 1912 } // namespace mojo | 1912 } // namespace mojo |
| OLD | NEW |