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

Unified Diff: src/shared/ppapi_proxy/browser_globals.cc

Issue 7631010: NaCl Proxy for graphics3d. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 4 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 | « src/shared/ppapi_proxy/browser_globals.h ('k') | src/shared/ppapi_proxy/browser_graphics_3d.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/ppapi_proxy/browser_globals.cc
===================================================================
--- src/shared/ppapi_proxy/browser_globals.cc (revision 6482)
+++ src/shared/ppapi_proxy/browser_globals.cc (working copy)
@@ -228,6 +228,19 @@
return ppb;
}
+const PPB_Graphics3D_Dev* PPBGraphics3DInterface() {
+ static const PPB_Graphics3D_Dev* ppb = static_cast<const PPB_Graphics3D_Dev*>(
+ GetBrowserInterfaceSafe(PPB_GRAPHICS_3D_DEV_INTERFACE));
+ return ppb;
+}
+
+const PPB_Graphics3DTrusted_Dev* PPBGraphics3DTrustedInterface() {
+ static const PPB_Graphics3DTrusted_Dev* ppb =
+ static_cast<const PPB_Graphics3DTrusted_Dev*>(
+ GetBrowserInterfaceSafe(PPB_GRAPHICS_3D_TRUSTED_DEV_INTERFACE));
+ return ppb;
+}
+
const PPB_ImageData* PPBImageDataInterface() {
static const PPB_ImageData* ppb = static_cast<const PPB_ImageData*>(
GetBrowserInterfaceSafe(PPB_IMAGEDATA_INTERFACE));
« no previous file with comments | « src/shared/ppapi_proxy/browser_globals.h ('k') | src/shared/ppapi_proxy/browser_graphics_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698