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

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

Issue 9601020: Add OpenGL occlusion query support to pepper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update to trunk Created 8 years, 9 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 25 matching lines...) Expand all
36 static const PPB_OpenGLES2InstancedArrays_Dev* 36 static const PPB_OpenGLES2InstancedArrays_Dev*
37 GetOpenGLESInstancedArraysInterface(); 37 GetOpenGLESInstancedArraysInterface();
38 static const PPB_OpenGLES2FramebufferBlit_Dev* 38 static const PPB_OpenGLES2FramebufferBlit_Dev*
39 GetOpenGLESFramebufferBlitInterface(); 39 GetOpenGLESFramebufferBlitInterface();
40 static const PPB_OpenGLES2FramebufferMultisample_Dev* 40 static const PPB_OpenGLES2FramebufferMultisample_Dev*
41 GetOpenGLESFramebufferMultisampleInterface(); 41 GetOpenGLESFramebufferMultisampleInterface();
42 static const PPB_OpenGLES2ChromiumEnableFeature_Dev* 42 static const PPB_OpenGLES2ChromiumEnableFeature_Dev*
43 GetOpenGLESChromiumEnableFeatureInterface(); 43 GetOpenGLESChromiumEnableFeatureInterface();
44 static const PPB_OpenGLES2ChromiumMapSub_Dev* 44 static const PPB_OpenGLES2ChromiumMapSub_Dev*
45 GetOpenGLESChromiumMapSubInterface(); 45 GetOpenGLESChromiumMapSubInterface();
46 static const PPB_OpenGLES2Query_Dev*
47 GetOpenGLESQueryInterface();
46 48
47 virtual bool InitFromBrowserResource(PP_Resource graphics3d_id); 49 virtual bool InitFromBrowserResource(PP_Resource graphics3d_id);
48 50
49 gpu::gles2::GLES2Implementation* impl() { 51 gpu::gles2::GLES2Implementation* impl() {
50 return gles2_implementation_.get(); 52 return gles2_implementation_.get();
51 } 53 }
52 54
53 int32_t SwapBuffers(PP_Resource graphics3d_id, 55 int32_t SwapBuffers(PP_Resource graphics3d_id,
54 struct PP_CompletionCallback callback); 56 struct PP_CompletionCallback callback);
55 57
(...skipping 26 matching lines...) Expand all
82 static gpu::gles2::GLES2Implementation* implFromResourceSlow( 84 static gpu::gles2::GLES2Implementation* implFromResourceSlow(
83 PP_Resource context); 85 PP_Resource context);
84 86
85 IMPLEMENT_RESOURCE(PluginGraphics3D); 87 IMPLEMENT_RESOURCE(PluginGraphics3D);
86 NACL_DISALLOW_COPY_AND_ASSIGN(PluginGraphics3D); 88 NACL_DISALLOW_COPY_AND_ASSIGN(PluginGraphics3D);
87 }; 89 };
88 90
89 } // namespace ppapi_proxy 91 } // namespace ppapi_proxy
90 92
91 #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