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 #ifndef PPAPI_THUNK_PPB_CONTEXT_3D_API_H_ | 5 #ifndef PPAPI_THUNK_PPB_CONTEXT_3D_API_H_ |
6 #define PPAPI_THUNK_PPB_CONTEXT_3D_API_H_ | 6 #define PPAPI_THUNK_PPB_CONTEXT_3D_API_H_ |
7 | 7 |
8 #include "ppapi/c/dev/ppb_context_3d_dev.h" | 8 #include "ppapi/c/dev/ppb_context_3d_dev.h" |
9 #include "ppapi/c/dev/ppb_context_3d_trusted_dev.h" | 9 #include "ppapi/c/dev/ppb_context_3d_trusted_dev.h" |
10 #include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h" | 10 #include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h" |
11 | 11 |
| 12 namespace gpu { |
| 13 namespace gles2 { |
| 14 class GLES2Implementation; |
| 15 } // namespace gles2 |
| 16 } // namespace gpu |
| 17 |
12 namespace ppapi { | 18 namespace ppapi { |
13 namespace thunk { | 19 namespace thunk { |
14 | 20 |
15 class PPB_Context3D_API { | 21 class PPB_Context3D_API { |
16 public: | 22 public: |
17 virtual ~PPB_Context3D_API() {} | 23 virtual ~PPB_Context3D_API() {} |
18 | 24 |
19 // Context3D. | 25 // Context3D. |
20 virtual int32_t GetAttrib(int32_t attribute, int32_t* value) = 0; | 26 virtual int32_t GetAttrib(int32_t attribute, int32_t* value) = 0; |
21 virtual int32_t BindSurfaces(PP_Resource draw, PP_Resource read) = 0; | 27 virtual int32_t BindSurfaces(PP_Resource draw, PP_Resource read) = 0; |
(...skipping 18 matching lines...) Expand all Loading... |
40 virtual void* MapTexSubImage2DCHROMIUM(GLenum target, | 46 virtual void* MapTexSubImage2DCHROMIUM(GLenum target, |
41 GLint level, | 47 GLint level, |
42 GLint xoffset, | 48 GLint xoffset, |
43 GLint yoffset, | 49 GLint yoffset, |
44 GLsizei width, | 50 GLsizei width, |
45 GLsizei height, | 51 GLsizei height, |
46 GLenum format, | 52 GLenum format, |
47 GLenum type, | 53 GLenum type, |
48 GLenum access) = 0; | 54 GLenum access) = 0; |
49 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) = 0; | 55 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) = 0; |
| 56 |
| 57 // For binding with OpenGLES interface. |
| 58 virtual gpu::gles2::GLES2Implementation* GetGLES2Impl() = 0; |
50 }; | 59 }; |
51 | 60 |
52 } // namespace thunk | 61 } // namespace thunk |
53 } // namespace ppapi | 62 } // namespace ppapi |
54 | 63 |
55 #endif // PPAPI_THUNK_PPB_CONTEXT_3D_API_H_ | 64 #endif // PPAPI_THUNK_PPB_CONTEXT_3D_API_H_ |
OLD | NEW |