OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 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 | |
5 #ifndef PPAPI_CPP_DEV_GRAPHICS_3D_DEV_H_ | |
6 #define PPAPI_CPP_DEV_GRAPHICS_3D_DEV_H_ | |
7 | |
8 #include "ppapi/c/dev/ppb_graphics_3d_dev.h" | |
9 #include "ppapi/cpp/resource.h" | |
10 | |
11 namespace pp { | |
12 | |
13 class CompletionCallback; | |
14 class Instance; | |
15 class Var; | |
16 | |
17 class Graphics3D_Dev : public Resource { | |
18 public: | |
19 // Creates an is_null() Graphics3D_Dev object. | |
20 Graphics3D_Dev(); | |
21 | |
22 Graphics3D_Dev(const Instance& instance, | |
23 const Graphics3D_Dev& share_context, | |
24 const int32_t* attrib_list); | |
25 | |
26 ~Graphics3D_Dev(); | |
27 | |
28 int32_t GetAttribs(int32_t* attrib_list) const; | |
29 int32_t SetAttribs(int32_t* attrib_list); | |
30 | |
31 int32_t ResizeBuffers(int32_t width, int32_t height); | |
32 | |
33 int32_t SwapBuffers(const CompletionCallback& cc); | |
34 }; | |
35 | |
36 } // namespace pp | |
37 | |
38 #endif // PPAPI_CPP_DEV_GRAPHICS_3D_DEV_H_ | |
39 | |
OLD | NEW |