[email protected] | 5bba4dc2 | 2010-08-17 19:45:28 | [diff] [blame] | 1 | // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style license that can be | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | 0bd75368 | 2010-12-16 18:15:52 | [diff] [blame] | 5 | #ifndef WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ |
6 | #define WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ | ||||
[email protected] | 5bba4dc2 | 2010-08-17 19:45:28 | [diff] [blame] | 7 | |
[email protected] | 6678946 | 2011-04-07 20:07:18 | [diff] [blame^] | 8 | #include "ppapi/c/dev/ppb_graphics_3d_dev.h" |
9 | #include "webkit/plugins/ppapi/resource.h" | ||||
[email protected] | 5bba4dc2 | 2010-08-17 19:45:28 | [diff] [blame] | 10 | |
[email protected] | 0bd75368 | 2010-12-16 18:15:52 | [diff] [blame] | 11 | namespace webkit { |
12 | namespace ppapi { | ||||
[email protected] | 5bba4dc2 | 2010-08-17 19:45:28 | [diff] [blame] | 13 | |
[email protected] | 6678946 | 2011-04-07 20:07:18 | [diff] [blame^] | 14 | class PPB_Graphics3D_Impl : public Resource { |
[email protected] | 5bba4dc2 | 2010-08-17 19:45:28 | [diff] [blame] | 15 | public: |
[email protected] | 6678946 | 2011-04-07 20:07:18 | [diff] [blame^] | 16 | explicit PPB_Graphics3D_Impl(PluginInstance* instance); |
17 | virtual ~PPB_Graphics3D_Impl(); | ||||
18 | |||||
[email protected] | 81870ae | 2010-08-30 01:31:07 | [diff] [blame] | 19 | static const PPB_Graphics3D_Dev* GetInterface(); |
[email protected] | 6678946 | 2011-04-07 20:07:18 | [diff] [blame^] | 20 | |
21 | // Resource override. | ||||
22 | virtual PPB_Graphics3D_Impl* AsPPB_Graphics3D_Impl(); | ||||
23 | |||||
24 | bool Init(PP_Config3D_Dev config, | ||||
25 | PP_Resource share_context, | ||||
26 | const int32_t* attrib_list); | ||||
27 | |||||
28 | private: | ||||
29 | DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); | ||||
[email protected] | 5bba4dc2 | 2010-08-17 19:45:28 | [diff] [blame] | 30 | }; |
31 | |||||
[email protected] | 0bd75368 | 2010-12-16 18:15:52 | [diff] [blame] | 32 | } // namespace ppapi |
33 | } // namespace webkit | ||||
[email protected] | 5bba4dc2 | 2010-08-17 19:45:28 | [diff] [blame] | 34 | |
[email protected] | 0bd75368 | 2010-12-16 18:15:52 | [diff] [blame] | 35 | #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ |
[email protected] | 542bdfe | 2010-11-30 03:55:47 | [diff] [blame] | 36 |