| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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. DO NOT EDIT! | 5 // This file is auto-generated. DO NOT EDIT! |
| 6 | 6 |
| 7 #include "webkit/glue/plugins/pepper_graphics_3d.h" | 7 #include "webkit/glue/plugins/pepper_graphics_3d.h" |
| 8 | 8 |
| 9 #include "gpu/command_buffer/client/gles2_implementation.h" | 9 #include "gpu/command_buffer/client/gles2_implementation.h" |
| 10 #include "third_party/ppapi/c/ppb_opengles.h" | 10 #include "third_party/ppapi/c/dev/ppb_opengles_dev.h" |
| 11 | 11 |
| 12 namespace pepper { | 12 namespace pepper { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 void ActiveTexture(GLenum texture) { | 16 void ActiveTexture(GLenum texture) { |
| 17 Graphics3D::GetCurrent()->impl()->ActiveTexture(texture); | 17 Graphics3D::GetCurrent()->impl()->ActiveTexture(texture); |
| 18 } | 18 } |
| 19 void AttachShader(GLuint program, GLuint shader) { | 19 void AttachShader(GLuint program, GLuint shader) { |
| 20 Graphics3D::GetCurrent()->impl()->AttachShader(program, shader); | 20 Graphics3D::GetCurrent()->impl()->AttachShader(program, shader); |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 void* MapTexSubImage2D( | 544 void* MapTexSubImage2D( |
| 545 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, | 545 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, |
| 546 GLsizei height, GLenum format, GLenum type, GLenum access) { | 546 GLsizei height, GLenum format, GLenum type, GLenum access) { |
| 547 return Graphics3D::GetCurrent()->impl()->MapTexSubImage2D( | 547 return Graphics3D::GetCurrent()->impl()->MapTexSubImage2D( |
| 548 target, level, xoffset, yoffset, width, height, format, type, access); | 548 target, level, xoffset, yoffset, width, height, format, type, access); |
| 549 } | 549 } |
| 550 void UnmapTexSubImage2D(const void* mem) { | 550 void UnmapTexSubImage2D(const void* mem) { |
| 551 Graphics3D::GetCurrent()->impl()->UnmapTexSubImage2D(mem); | 551 Graphics3D::GetCurrent()->impl()->UnmapTexSubImage2D(mem); |
| 552 } | 552 } |
| 553 | 553 |
| 554 const PPB_OpenGLES ppb_opengles = { | 554 const PPB_OpenGLES_Dev ppb_opengles = { |
| 555 &ActiveTexture, | 555 &ActiveTexture, |
| 556 &AttachShader, | 556 &AttachShader, |
| 557 &BindAttribLocation, | 557 &BindAttribLocation, |
| 558 &BindBuffer, | 558 &BindBuffer, |
| 559 &BindFramebuffer, | 559 &BindFramebuffer, |
| 560 &BindRenderbuffer, | 560 &BindRenderbuffer, |
| 561 &BindTexture, | 561 &BindTexture, |
| 562 &BlendColor, | 562 &BlendColor, |
| 563 &BlendEquation, | 563 &BlendEquation, |
| 564 &BlendEquationSeparate, | 564 &BlendEquationSeparate, |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 &RegisterSharedIds, | 701 &RegisterSharedIds, |
| 702 &CommandBufferEnable, | 702 &CommandBufferEnable, |
| 703 &MapBufferSubData, | 703 &MapBufferSubData, |
| 704 &UnmapBufferSubData, | 704 &UnmapBufferSubData, |
| 705 &MapTexSubImage2D, | 705 &MapTexSubImage2D, |
| 706 &UnmapTexSubImage2D | 706 &UnmapTexSubImage2D |
| 707 }; | 707 }; |
| 708 | 708 |
| 709 } // namespace | 709 } // namespace |
| 710 | 710 |
| 711 const PPB_OpenGLES* Graphics3D::GetOpenGLESInterface() { | 711 const PPB_OpenGLES_Dev* Graphics3D::GetOpenGLESInterface() { |
| 712 return &ppb_opengles; | 712 return &ppb_opengles; |
| 713 } | 713 } |
| 714 | 714 |
| 715 } // namespace pepper | 715 } // namespace pepper |
| 716 | 716 |
| OLD | NEW |