OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_PPB_GRAPHICS_3D_H_ | 5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_PPB_GRAPHICS_3D_H_ |
6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_PPB_GRAPHICS_3D_H_ | 6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_PPB_GRAPHICS_3D_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "native_client/src/include/nacl_macros.h" | 9 #include "native_client/src/include/nacl_macros.h" |
10 #include "native_client/src/shared/ppapi_proxy/plugin_resource.h" | 10 #include "native_client/src/shared/ppapi_proxy/plugin_resource.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 namespace ppapi_proxy { | 25 namespace ppapi_proxy { |
26 | 26 |
27 // Implements the plugin (i.e., .nexe) side of the PPB_Graphics3D interface. | 27 // Implements the plugin (i.e., .nexe) side of the PPB_Graphics3D interface. |
28 class PluginGraphics3D : public PluginResource { | 28 class PluginGraphics3D : public PluginResource { |
29 public: | 29 public: |
30 PluginGraphics3D(); | 30 PluginGraphics3D(); |
31 virtual ~PluginGraphics3D(); | 31 virtual ~PluginGraphics3D(); |
32 | 32 |
33 static const PPB_Graphics3D* GetInterface(); | 33 static const PPB_Graphics3D* GetInterface(); |
34 static const PPB_OpenGLES2* GetOpenGLESInterface(); | 34 static const PPB_OpenGLES2* GetOpenGLESInterface(); |
| 35 static const PPB_OpenGLES2InstancedArrays* |
| 36 GetOpenGLESInstancedArraysInterface(); |
| 37 static const PPB_OpenGLES2FramebufferBlit* |
| 38 GetOpenGLESFramebufferBlitInterface(); |
| 39 static const PPB_OpenGLES2FramebufferMultisample* |
| 40 GetOpenGLESFramebufferMultisampleInterface(); |
| 41 static const PPB_OpenGLES2ChromiumEnableFeature* |
| 42 GetOpenGLESChromiumEnableFeatureInterface(); |
| 43 static const PPB_OpenGLES2ChromiumMapSub* |
| 44 GetOpenGLESChromiumMapSubInterface(); |
35 | 45 |
36 virtual bool InitFromBrowserResource(PP_Resource graphics3d_id); | 46 virtual bool InitFromBrowserResource(PP_Resource graphics3d_id); |
37 | 47 |
38 gpu::gles2::GLES2Implementation* impl() { | 48 gpu::gles2::GLES2Implementation* impl() { |
39 return gles2_implementation_.get(); | 49 return gles2_implementation_.get(); |
40 } | 50 } |
41 | 51 |
42 int32_t SwapBuffers(PP_Resource graphics3d_id, | 52 int32_t SwapBuffers(PP_Resource graphics3d_id, |
43 struct PP_CompletionCallback callback); | 53 struct PP_CompletionCallback callback); |
44 | 54 |
(...skipping 26 matching lines...) Expand all Loading... |
71 static gpu::gles2::GLES2Implementation* implFromResourceSlow( | 81 static gpu::gles2::GLES2Implementation* implFromResourceSlow( |
72 PP_Resource context); | 82 PP_Resource context); |
73 | 83 |
74 IMPLEMENT_RESOURCE(PluginGraphics3D); | 84 IMPLEMENT_RESOURCE(PluginGraphics3D); |
75 NACL_DISALLOW_COPY_AND_ASSIGN(PluginGraphics3D); | 85 NACL_DISALLOW_COPY_AND_ASSIGN(PluginGraphics3D); |
76 }; | 86 }; |
77 | 87 |
78 } // namespace ppapi_proxy | 88 } // namespace ppapi_proxy |
79 | 89 |
80 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_PPB_GRAPHICS_3D_H_ | 90 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_PPB_GRAPHICS_3D_H_ |
OLD | NEW |