| Index: webkit/plugins/ppapi/ppb_graphics_3d_impl.h
|
| ===================================================================
|
| --- webkit/plugins/ppapi/ppb_graphics_3d_impl.h (revision 89672)
|
| +++ webkit/plugins/ppapi/ppb_graphics_3d_impl.h (working copy)
|
| @@ -5,27 +5,37 @@
|
| #ifndef WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_
|
| #define WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_
|
|
|
| -#include "ppapi/c/dev/ppb_graphics_3d_dev.h"
|
| +#include "ppapi/thunk/ppb_graphics_3d_api.h"
|
| #include "webkit/plugins/ppapi/resource.h"
|
|
|
| namespace webkit {
|
| namespace ppapi {
|
|
|
| -class PPB_Graphics3D_Impl : public Resource {
|
| +class PPB_Graphics3D_Impl : public Resource,
|
| + public ::ppapi::thunk::PPB_Graphics3D_API {
|
| public:
|
| - explicit PPB_Graphics3D_Impl(PluginInstance* instance);
|
| virtual ~PPB_Graphics3D_Impl();
|
|
|
| - static const PPB_Graphics3D_Dev* GetInterface();
|
| + static PP_Resource Create(PP_Instance instance,
|
| + PP_Config3D_Dev config,
|
| + PP_Resource share_context,
|
| + const int32_t* attrib_list);
|
|
|
| - // Resource override.
|
| - virtual PPB_Graphics3D_Impl* AsPPB_Graphics3D_Impl();
|
| + // ResourceObjectBase override.
|
| + virtual ::ppapi::thunk::PPB_Graphics3D_API* AsPPB_Graphics3D_API() OVERRIDE;
|
|
|
| + // PPB_Graphics3D_API implementation.
|
| + virtual int32_t GetAttribs(int32_t* attrib_list) OVERRIDE;
|
| + virtual int32_t SetAttribs(int32_t* attrib_list) OVERRIDE;
|
| + virtual int32_t SwapBuffers(PP_CompletionCallback callback) OVERRIDE;
|
| +
|
| + private:
|
| + explicit PPB_Graphics3D_Impl(PluginInstance* instance);
|
| +
|
| bool Init(PP_Config3D_Dev config,
|
| PP_Resource share_context,
|
| const int32_t* attrib_list);
|
|
|
| - private:
|
| DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl);
|
| };
|
|
|
|
|