summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/ppb_graphics_3d_impl.h
blob: b9dbc14683b58bca495bb99de7c326cc26a11bcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 "webkit/plugins/ppapi/resource.h"

namespace webkit {
namespace ppapi {

class PPB_Graphics3D_Impl : public Resource {
 public:
  explicit PPB_Graphics3D_Impl(PluginInstance* instance);
  virtual ~PPB_Graphics3D_Impl();

  static const PPB_Graphics3D_Dev* GetInterface();

  // Resource override.
  virtual PPB_Graphics3D_Impl* AsPPB_Graphics3D_Impl();

  bool Init(PP_Config3D_Dev config,
            PP_Resource share_context,
            const int32_t* attrib_list);

 private:
  DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl);
};

}  // namespace ppapi
}  // namespace webkit

#endif  // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_