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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. 1 // Copyright (c) 2011 The Native Client 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 #include "native_client/src/shared/ppapi_proxy/browser_globals.h" 5 #include "native_client/src/shared/ppapi_proxy/browser_globals.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 #include <map> 10 #include <map>
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 GetBrowserInterfaceSafe(PPB_CORE_INTERFACE)); 221 GetBrowserInterfaceSafe(PPB_CORE_INTERFACE));
222 return ppb; 222 return ppb;
223 } 223 }
224 224
225 const PPB_Graphics2D* PPBGraphics2DInterface() { 225 const PPB_Graphics2D* PPBGraphics2DInterface() {
226 static const PPB_Graphics2D* ppb = static_cast<const PPB_Graphics2D*>( 226 static const PPB_Graphics2D* ppb = static_cast<const PPB_Graphics2D*>(
227 GetBrowserInterfaceSafe(PPB_GRAPHICS_2D_INTERFACE)); 227 GetBrowserInterfaceSafe(PPB_GRAPHICS_2D_INTERFACE));
228 return ppb; 228 return ppb;
229 } 229 }
230 230
231 const PPB_Graphics3D_Dev* PPBGraphics3DInterface() {
232 static const PPB_Graphics3D_Dev* ppb = static_cast<const PPB_Graphics3D_Dev*>(
233 GetBrowserInterfaceSafe(PPB_GRAPHICS_3D_DEV_INTERFACE));
234 return ppb;
235 }
236
237 const PPB_Graphics3DTrusted_Dev* PPBGraphics3DTrustedInterface() {
238 static const PPB_Graphics3DTrusted_Dev* ppb =
239 static_cast<const PPB_Graphics3DTrusted_Dev*>(
240 GetBrowserInterfaceSafe(PPB_GRAPHICS_3D_TRUSTED_DEV_INTERFACE));
241 return ppb;
242 }
243
231 const PPB_ImageData* PPBImageDataInterface() { 244 const PPB_ImageData* PPBImageDataInterface() {
232 static const PPB_ImageData* ppb = static_cast<const PPB_ImageData*>( 245 static const PPB_ImageData* ppb = static_cast<const PPB_ImageData*>(
233 GetBrowserInterfaceSafe(PPB_IMAGEDATA_INTERFACE)); 246 GetBrowserInterfaceSafe(PPB_IMAGEDATA_INTERFACE));
234 return ppb; 247 return ppb;
235 } 248 }
236 249
237 const PPB_ImageDataTrusted* PPBImageDataTrustedInterface() { 250 const PPB_ImageDataTrusted* PPBImageDataTrustedInterface() {
238 static const PPB_ImageDataTrusted* ppb = 251 static const PPB_ImageDataTrusted* ppb =
239 static_cast<const PPB_ImageDataTrusted*>( 252 static_cast<const PPB_ImageDataTrusted*>(
240 GetBrowserInterfaceSafe(PPB_IMAGEDATA_TRUSTED_INTERFACE)); 253 GetBrowserInterfaceSafe(PPB_IMAGEDATA_TRUSTED_INTERFACE));
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 408
396 // Private interfaces. 409 // Private interfaces.
397 const PPB_PDF* PPBPDFInterface() { 410 const PPB_PDF* PPBPDFInterface() {
398 static const PPB_PDF* ppb = 411 static const PPB_PDF* ppb =
399 static_cast<const PPB_PDF*>( 412 static_cast<const PPB_PDF*>(
400 GetBrowserInterfaceSafe(PPB_PDF_INTERFACE)); 413 GetBrowserInterfaceSafe(PPB_PDF_INTERFACE));
401 return ppb; 414 return ppb;
402 } 415 }
403 416
404 } // namespace ppapi_proxy 417 } // namespace ppapi_proxy
OLDNEW
« 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