OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // DO NOT EDIT! | 7 // DO NOT EDIT! |
8 | 8 |
9 #include "ppapi/shared_impl/opengles2_impl.h" | 9 #include "ppapi/shared_impl/ppb_opengles2_shared.h" |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "gpu/command_buffer/client/gles2_implementation.h" | 12 #include "gpu/command_buffer/client/gles2_implementation.h" |
13 #include "ppapi/shared_impl/graphics_3d_impl.h" | 13 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" |
14 #include "ppapi/thunk/enter.h" | 14 #include "ppapi/thunk/enter.h" |
15 | 15 |
16 namespace ppapi { | 16 namespace ppapi { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 gpu::gles2::GLES2Implementation* GetGLES(PP_Resource context) { | 20 gpu::gles2::GLES2Implementation* GetGLES(PP_Resource context) { |
21 thunk::EnterResource<thunk::PPB_Graphics3D_API> enter_g3d(context, false); | 21 thunk::EnterResource<thunk::PPB_Graphics3D_API> enter_g3d(context, false); |
22 DCHECK(enter_g3d.succeeded()); | 22 DCHECK(enter_g3d.succeeded()); |
23 return static_cast<Graphics3DImpl*>(enter_g3d.object())->gles2_impl(); | 23 return static_cast<PPB_Graphics3D_Shared*>(enter_g3d.object())->gles2_impl(); |
24 } | 24 } |
25 | 25 |
26 void ActiveTexture(PP_Resource context_id, GLenum texture) { | 26 void ActiveTexture(PP_Resource context_id, GLenum texture) { |
27 GetGLES(context_id)->ActiveTexture(texture); | 27 GetGLES(context_id)->ActiveTexture(texture); |
28 } | 28 } |
29 | 29 |
30 void AttachShader(PP_Resource context_id, GLuint program, GLuint shader) { | 30 void AttachShader(PP_Resource context_id, GLuint program, GLuint shader) { |
31 GetGLES(context_id)->AttachShader(program, shader); | 31 GetGLES(context_id)->AttachShader(program, shader); |
32 } | 32 } |
33 | 33 |
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 &VertexAttrib3f, | 884 &VertexAttrib3f, |
885 &VertexAttrib3fv, | 885 &VertexAttrib3fv, |
886 &VertexAttrib4f, | 886 &VertexAttrib4f, |
887 &VertexAttrib4fv, | 887 &VertexAttrib4fv, |
888 &VertexAttribPointer, | 888 &VertexAttribPointer, |
889 &Viewport | 889 &Viewport |
890 }; | 890 }; |
891 | 891 |
892 } // namespace | 892 } // namespace |
893 | 893 |
894 const PPB_OpenGLES2* OpenGLES2Impl::GetInterface() { | 894 const PPB_OpenGLES2* PPB_OpenGLES2_Shared::GetInterface() { |
895 return &ppb_opengles2; | 895 return &ppb_opengles2; |
896 } | 896 } |
897 | 897 |
898 } // namespace ppapi | 898 } // namespace ppapi |
OLD | NEW |