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

Side by Side Diff: src/shared/ppapi_proxy/plugin_graphics_3d.cc

Issue 4210003: Started on Resource class. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Resource->PluginResource Created 10 years, 1 month 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/plugin_graphics_3d.h ('k') | src/shared/ppapi_proxy/plugin_image_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2010 The Native Client Authors. All rights reserved. 2 * Copyright 2010 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can 3 * Use of this source code is governed by a BSD-style license that can
4 * be found in the LICENSE file. 4 * be found in the LICENSE file.
5 */ 5 */
6 6
7 #include "native_client/src/shared/ppapi_proxy/plugin_graphics_3d.h" 7 #include "native_client/src/shared/ppapi_proxy/plugin_graphics_3d.h"
8 8
9 #include <stdio.h> 9 #include <stdio.h>
10 #include <string.h> 10 #include <string.h>
11 #include "gen/native_client/src/shared/ppapi_proxy/ppb_rpc.h" 11 #include "gen/native_client/src/shared/ppapi_proxy/ppb_rpc.h"
12 #include "native_client/src/include/portability.h" 12 #include "native_client/src/include/portability.h"
13 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" 13 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h"
14 #include "native_client/src/shared/ppapi_proxy/utility.h" 14 #include "native_client/src/shared/ppapi_proxy/utility.h"
15 #include "native_client/src/shared/srpc/nacl_srpc.h" 15 #include "native_client/src/shared/srpc/nacl_srpc.h"
16 #include "ppapi/c/dev/ppb_graphics_3d_dev.h" 16 #include "ppapi/c/dev/ppb_graphics_3d_dev.h"
17 17
18 namespace ppapi_proxy { 18 namespace ppapi_proxy {
19 19
20 namespace { 20 namespace {
21 PP_Bool IsGraphics3D(PP_Resource resource) { 21 PP_Bool IsGraphics3D(PP_Resource resource) {
22 UNREFERENCED_PARAMETER(resource); 22 return PluginResource::GetAs<PluginGraphics3D>(resource).get()
23 return PP_FALSE; 23 ? PP_TRUE : PP_FALSE;
24 } 24 }
25 25
26 PP_Bool GetConfigs(int32_t* configs, 26 PP_Bool GetConfigs(int32_t* configs,
27 int32_t config_size, 27 int32_t config_size,
28 int32_t* num_config) { 28 int32_t* num_config) {
29 UNREFERENCED_PARAMETER(configs); 29 UNREFERENCED_PARAMETER(configs);
30 UNREFERENCED_PARAMETER(config_size); 30 UNREFERENCED_PARAMETER(config_size);
31 UNREFERENCED_PARAMETER(num_config); 31 UNREFERENCED_PARAMETER(num_config);
32 return PP_FALSE; 32 return PP_FALSE;
33 } 33 }
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 GetProcAddress, 101 GetProcAddress,
102 MakeCurrent, 102 MakeCurrent,
103 GetCurrentContext, 103 GetCurrentContext,
104 SwapBuffers, 104 SwapBuffers,
105 GetError, 105 GetError,
106 }; 106 };
107 return &intf; 107 return &intf;
108 } 108 }
109 109
110 } // namespace ppapi_proxy 110 } // namespace ppapi_proxy
OLDNEW
« no previous file with comments | « src/shared/ppapi_proxy/plugin_graphics_3d.h ('k') | src/shared/ppapi_proxy/plugin_image_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698