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

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/browser_globals.cc

Issue 7737013: Move PPAPI graphics3d and opengles interfaces out of Dev. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 GetBrowserInterfaceSafe(PPB_CORE_INTERFACE)); 206 GetBrowserInterfaceSafe(PPB_CORE_INTERFACE));
207 return ppb; 207 return ppb;
208 } 208 }
209 209
210 const PPB_Graphics2D* PPBGraphics2DInterface() { 210 const PPB_Graphics2D* PPBGraphics2DInterface() {
211 static const PPB_Graphics2D* ppb = static_cast<const PPB_Graphics2D*>( 211 static const PPB_Graphics2D* ppb = static_cast<const PPB_Graphics2D*>(
212 GetBrowserInterfaceSafe(PPB_GRAPHICS_2D_INTERFACE)); 212 GetBrowserInterfaceSafe(PPB_GRAPHICS_2D_INTERFACE));
213 return ppb; 213 return ppb;
214 } 214 }
215 215
216 const PPB_Graphics3D_Dev* PPBGraphics3DInterface() { 216 const PPB_Graphics3D* PPBGraphics3DInterface() {
217 static const PPB_Graphics3D_Dev* ppb = static_cast<const PPB_Graphics3D_Dev*>( 217 static const PPB_Graphics3D* ppb = static_cast<const PPB_Graphics3D*>(
218 GetBrowserInterfaceSafe(PPB_GRAPHICS_3D_DEV_INTERFACE)); 218 GetBrowserInterfaceSafe(PPB_GRAPHICS_3D_INTERFACE));
219 return ppb; 219 return ppb;
220 } 220 }
221 221
222 const PPB_Graphics3DTrusted_Dev* PPBGraphics3DTrustedInterface() { 222 const PPB_Graphics3DTrusted* PPBGraphics3DTrustedInterface() {
223 static const PPB_Graphics3DTrusted_Dev* ppb = 223 static const PPB_Graphics3DTrusted* ppb =
224 static_cast<const PPB_Graphics3DTrusted_Dev*>( 224 static_cast<const PPB_Graphics3DTrusted*>(
225 GetBrowserInterfaceSafe(PPB_GRAPHICS_3D_TRUSTED_DEV_INTERFACE)); 225 GetBrowserInterfaceSafe(PPB_GRAPHICS_3D_TRUSTED_INTERFACE));
226 return ppb; 226 return ppb;
227 } 227 }
228 228
229 const PPB_ImageData* PPBImageDataInterface() { 229 const PPB_ImageData* PPBImageDataInterface() {
230 static const PPB_ImageData* ppb = static_cast<const PPB_ImageData*>( 230 static const PPB_ImageData* ppb = static_cast<const PPB_ImageData*>(
231 GetBrowserInterfaceSafe(PPB_IMAGEDATA_INTERFACE)); 231 GetBrowserInterfaceSafe(PPB_IMAGEDATA_INTERFACE));
232 return ppb; 232 return ppb;
233 } 233 }
234 234
235 const PPB_ImageDataTrusted* PPBImageDataTrustedInterface() { 235 const PPB_ImageDataTrusted* PPBImageDataTrustedInterface() {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 393
394 // Private interfaces. 394 // Private interfaces.
395 const PPB_PDF* PPBPDFInterface() { 395 const PPB_PDF* PPBPDFInterface() {
396 static const PPB_PDF* ppb = 396 static const PPB_PDF* ppb =
397 static_cast<const PPB_PDF*>( 397 static_cast<const PPB_PDF*>(
398 GetBrowserInterfaceSafe(PPB_PDF_INTERFACE)); 398 GetBrowserInterfaceSafe(PPB_PDF_INTERFACE));
399 return ppb; 399 return ppb;
400 } 400 }
401 401
402 } // namespace ppapi_proxy 402 } // namespace ppapi_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698