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

Side by Side Diff: ppapi/cpp/dev/graphics_3d_dev.h

Issue 7576012: Removed config management from Graphics3D API. It will be better handled in the EGL helper library. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 months 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 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_CPP_DEV_GRAPHICS_3D_DEV_H_ 5 #ifndef PPAPI_CPP_DEV_GRAPHICS_3D_DEV_H_
6 #define PPAPI_CPP_DEV_GRAPHICS_3D_DEV_H_ 6 #define PPAPI_CPP_DEV_GRAPHICS_3D_DEV_H_
7 7
8 #include "ppapi/c/dev/ppb_graphics_3d_dev.h" 8 #include "ppapi/c/dev/ppb_graphics_3d_dev.h"
9 #include "ppapi/cpp/resource.h" 9 #include "ppapi/cpp/resource.h"
10 10
11 namespace pp { 11 namespace pp {
12 12
13 class CompletionCallback; 13 class CompletionCallback;
14 class Instance; 14 class Instance;
15 class Var; 15 class Var;
16 16
17 class Graphics3D_Dev : public Resource { 17 class Graphics3D_Dev : public Resource {
18 public: 18 public:
19 // Creates an is_null() Graphics3D_Dev object. 19 // Creates an is_null() Graphics3D_Dev object.
20 Graphics3D_Dev(); 20 Graphics3D_Dev();
21 21
22 Graphics3D_Dev(const Instance& instance, 22 Graphics3D_Dev(const Instance& instance,
23 PP_Config3D_Dev config,
24 const Graphics3D_Dev& share_context, 23 const Graphics3D_Dev& share_context,
25 const int32_t* attrib_list); 24 const int32_t* attrib_list);
26 25
27 ~Graphics3D_Dev(); 26 ~Graphics3D_Dev();
28 27
29 static int32_t GetConfigs(PP_Config3D_Dev* configs,
30 int32_t config_size,
31 int32_t* num_config);
32
33 static int32_t GetConfigAttribs(PP_Config3D_Dev config,
34 int32_t* attrib_list);
35
36 static Var GetString(int32_t name); 28 static Var GetString(int32_t name);
37 29
38 int32_t GetAttribs(int32_t* attrib_list) const; 30 int32_t GetAttribs(int32_t* attrib_list) const;
39 int32_t SetAttribs(int32_t* attrib_list); 31 int32_t SetAttribs(int32_t* attrib_list);
40 32
41 int32_t ResizeBuffers(int32_t width, int32_t height); 33 int32_t ResizeBuffers(int32_t width, int32_t height);
42 34
43 int32_t SwapBuffers(const CompletionCallback& cc); 35 int32_t SwapBuffers(const CompletionCallback& cc);
44 }; 36 };
45 37
46 } // namespace pp 38 } // namespace pp
47 39
48 #endif // PPAPI_CPP_DEV_GRAPHICS_3D_DEV_H_ 40 #endif // PPAPI_CPP_DEV_GRAPHICS_3D_DEV_H_
49 41
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698