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

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

Issue 5835007: Revert 69511 - Make Graphics3D::SwapBuffers take a completion callback... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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
« no previous file with comments | « ppapi/c/dev/ppb_graphics_3d_dev.h ('k') | ppapi/cpp/dev/graphics_3d_dev.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 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/c/dev/ppb_opengles_dev.h" 9 #include "ppapi/c/dev/ppb_opengles_dev.h"
10 #include "ppapi/cpp/completion_callback.h"
11 #include "ppapi/cpp/instance.h" 10 #include "ppapi/cpp/instance.h"
12 #include "ppapi/cpp/resource.h" 11 #include "ppapi/cpp/resource.h"
13 12
14 namespace pp { 13 namespace pp {
15 14
16 class Graphics3D_Dev : public Resource { 15 class Graphics3D_Dev : public Resource {
17 public: 16 public:
18 static bool GetConfigs(int32_t* configs, int32_t config_size, 17 static bool GetConfigs(int32_t* configs, int32_t config_size,
19 int32_t* num_config); 18 int32_t* num_config);
20 19
(...skipping 14 matching lines...) Expand all
35 34
36 // Creates an is_null() Graphics3D object. 35 // Creates an is_null() Graphics3D object.
37 Graphics3D_Dev() {} 36 Graphics3D_Dev() {}
38 37
39 Graphics3D_Dev(const Instance& instance, 38 Graphics3D_Dev(const Instance& instance,
40 int32_t config, 39 int32_t config,
41 int32_t share_context, 40 int32_t share_context,
42 const int32_t* attrib_list); 41 const int32_t* attrib_list);
43 42
44 bool MakeCurrent() const; 43 bool MakeCurrent() const;
45 bool SwapBuffers(const CompletionCallback& cc) const; 44 bool SwapBuffers() const;
46 45
47 protected: 46 protected:
48 explicit Graphics3D_Dev(PP_Resource resource_id) : Resource(resource_id) {} 47 explicit Graphics3D_Dev(PP_Resource resource_id) : Resource(resource_id) {}
49 static Graphics3D_Dev FromResource(PP_Resource resource_id); 48 static Graphics3D_Dev FromResource(PP_Resource resource_id);
50 }; 49 };
51 50
52 } // namespace pp 51 } // namespace pp
53 52
54 #endif // PPAPI_CPP_DEV_GRAPHICS_3D_DEV_H_ 53 #endif // PPAPI_CPP_DEV_GRAPHICS_3D_DEV_H_
55 54
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppb_graphics_3d_dev.h ('k') | ppapi/cpp/dev/graphics_3d_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698