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

Unified Diff: webkit/plugins/ppapi/ppb_context_3d_impl.h

Issue 6314025: Implements PPB_Context3DTrusted_Dev. Also add CreateRaw/Initialize for proxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/ppapi/plugin_module.cc ('k') | webkit/plugins/ppapi/ppb_context_3d_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_context_3d_impl.h
diff --git a/webkit/plugins/ppapi/ppb_context_3d_impl.h b/webkit/plugins/ppapi/ppb_context_3d_impl.h
index e0fe036a213c232c68f9d746f3932370e0042d31..002198449a5dd954c0fb4bdbd134df0df0616c67 100644
--- a/webkit/plugins/ppapi/ppb_context_3d_impl.h
+++ b/webkit/plugins/ppapi/ppb_context_3d_impl.h
@@ -10,7 +10,10 @@
#include "webkit/plugins/ppapi/plugin_delegate.h"
#include "webkit/plugins/ppapi/resource.h"
+struct PPB_Context3DTrusted_Dev;
+
namespace gpu {
+class CommandBuffer;
namespace gles2 {
class GLES2CmdHelper;
class GLES2Implementation;
@@ -28,6 +31,7 @@ class PPB_Context3D_Impl : public Resource {
virtual ~PPB_Context3D_Impl();
static const PPB_Context3D_Dev* GetInterface();
+ static const PPB_Context3DTrusted_Dev* GetTrustedInterface();
// Resource override.
virtual PPB_Context3D_Impl* AsPPB_Context3D_Impl();
@@ -35,6 +39,9 @@ class PPB_Context3D_Impl : public Resource {
bool Init(PP_Config3D_Dev config,
PP_Resource share_context,
const int32_t* attrib_list);
+ bool InitRaw(PP_Config3D_Dev config,
+ PP_Resource share_context,
+ const int32_t* attrib_list);
PluginInstance* instance() {
return instance_;
@@ -48,11 +55,14 @@ class PPB_Context3D_Impl : public Resource {
return gles2_impl_.get();
}
+ gpu::CommandBuffer* command_buffer();
+
int32_t BindSurfaces(PPB_Surface3D_Impl* draw,
PPB_Surface3D_Impl* read);
private:
void Destroy();
+ bool CreateImplementation();
// Plugin instance this context is associated with.
PluginInstance* instance_;
« no previous file with comments | « webkit/plugins/ppapi/plugin_module.cc ('k') | webkit/plugins/ppapi/ppb_context_3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698