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

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

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
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 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GRAPHICS_3D_H_ 7 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GRAPHICS_3D_H_
8 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GRAPHICS_3D_H_ 8 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GRAPHICS_3D_H_
9 9
10 #include "native_client/src/include/nacl_macros.h" 10 #include "native_client/src/include/nacl_macros.h"
11 #include "native_client/src/shared/ppapi_proxy/plugin_resource.h"
11 #include "ppapi/c/dev/ppb_graphics_3d_dev.h" 12 #include "ppapi/c/dev/ppb_graphics_3d_dev.h"
12 13
13 namespace ppapi_proxy { 14 namespace ppapi_proxy {
14 15
15 // Implements the plugin (i.e., .nexe) side of the PPB_Graphics3D interface. 16 // Implements the plugin (i.e., .nexe) side of the PPB_Graphics3D interface.
16 class PluginGraphics3D { 17 class PluginGraphics3D : public PluginResource {
17 public: 18 public:
18 static const PPB_Graphics3D_Dev* GetInterface(); 19 static const PPB_Graphics3D_Dev* GetInterface();
19 20
20 private: 21 private:
22 IMPLEMENT_RESOURCE(PluginGraphics3D);
21 NACL_DISALLOW_COPY_AND_ASSIGN(PluginGraphics3D); 23 NACL_DISALLOW_COPY_AND_ASSIGN(PluginGraphics3D);
22 }; 24 };
23 25
24 } // namespace ppapi_proxy 26 } // namespace ppapi_proxy
25 27
26 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GRAPHICS_3D_H_ 28 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_GRAPHICS_3D_H_
OLDNEW
« no previous file with comments | « src/shared/ppapi_proxy/plugin_graphics_2d.cc ('k') | src/shared/ppapi_proxy/plugin_graphics_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698