Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(534)

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_graphics_3d.h

Issue 10354004: Move gles2 extensions out of dev. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 15 matching lines...) Expand all
26 namespace ppapi_proxy { 26 namespace ppapi_proxy {
27 27
28 // Implements the plugin (i.e., .nexe) side of the PPB_Graphics3D interface. 28 // Implements the plugin (i.e., .nexe) side of the PPB_Graphics3D interface.
29 class PluginGraphics3D : public PluginResource { 29 class PluginGraphics3D : public PluginResource {
30 public: 30 public:
31 PluginGraphics3D(); 31 PluginGraphics3D();
32 virtual ~PluginGraphics3D(); 32 virtual ~PluginGraphics3D();
33 33
34 static const PPB_Graphics3D* GetInterface(); 34 static const PPB_Graphics3D* GetInterface();
35 static const PPB_OpenGLES2* GetOpenGLESInterface(); 35 static const PPB_OpenGLES2* GetOpenGLESInterface();
36 static const PPB_OpenGLES2InstancedArrays_Dev* 36 static const PPB_OpenGLES2InstancedArrays*
37 GetOpenGLESInstancedArraysInterface(); 37 GetOpenGLESInstancedArraysInterface();
38 static const PPB_OpenGLES2FramebufferBlit_Dev* 38 static const PPB_OpenGLES2FramebufferBlit*
39 GetOpenGLESFramebufferBlitInterface(); 39 GetOpenGLESFramebufferBlitInterface();
40 static const PPB_OpenGLES2FramebufferMultisample_Dev* 40 static const PPB_OpenGLES2FramebufferMultisample*
41 GetOpenGLESFramebufferMultisampleInterface(); 41 GetOpenGLESFramebufferMultisampleInterface();
42 static const PPB_OpenGLES2ChromiumEnableFeature_Dev* 42 static const PPB_OpenGLES2ChromiumEnableFeature*
43 GetOpenGLESChromiumEnableFeatureInterface(); 43 GetOpenGLESChromiumEnableFeatureInterface();
44 static const PPB_OpenGLES2ChromiumMapSub_Dev* 44 static const PPB_OpenGLES2ChromiumMapSub*
45 GetOpenGLESChromiumMapSubInterface(); 45 GetOpenGLESChromiumMapSubInterface();
46 static const PPB_OpenGLES2Query_Dev* 46 static const PPB_OpenGLES2Query*
47 GetOpenGLESQueryInterface(); 47 GetOpenGLESQueryInterface();
48 48
49 virtual bool InitFromBrowserResource(PP_Resource graphics3d_id); 49 virtual bool InitFromBrowserResource(PP_Resource graphics3d_id);
50 50
51 gpu::gles2::GLES2Implementation* impl() { 51 gpu::gles2::GLES2Implementation* impl() {
52 return gles2_implementation_.get(); 52 return gles2_implementation_.get();
53 } 53 }
54 54
55 int32_t SwapBuffers(PP_Resource graphics3d_id, 55 int32_t SwapBuffers(PP_Resource graphics3d_id,
56 struct PP_CompletionCallback callback); 56 struct PP_CompletionCallback callback);
(...skipping 27 matching lines...) Expand all
84 static gpu::gles2::GLES2Implementation* implFromResourceSlow( 84 static gpu::gles2::GLES2Implementation* implFromResourceSlow(
85 PP_Resource context); 85 PP_Resource context);
86 86
87 IMPLEMENT_RESOURCE(PluginGraphics3D); 87 IMPLEMENT_RESOURCE(PluginGraphics3D);
88 NACL_DISALLOW_COPY_AND_ASSIGN(PluginGraphics3D); 88 NACL_DISALLOW_COPY_AND_ASSIGN(PluginGraphics3D);
89 }; 89 };
90 90
91 } // namespace ppapi_proxy 91 } // namespace ppapi_proxy
92 92
93 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_PPB_GRAPHICS_3D_H_ 93 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_PPB_GRAPHICS_3D_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698