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

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

Issue 5944001: Make Graphics3D::SwapBuffers take a completion callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update to Alok's Context3D/Surface3D changes Created 9 years, 11 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
« no previous file with comments | « gpu/demos/framework/pepper.cc ('k') | ppapi/cpp/dev/surface_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_SURFACE_3D_DEV_H_ 5 #ifndef PPAPI_CPP_DEV_SURFACE_3D_DEV_H_
6 #define PPAPI_CPP_DEV_SURFACE_3D_DEV_H_ 6 #define PPAPI_CPP_DEV_SURFACE_3D_DEV_H_
7 7
8 #include "ppapi/c/dev/ppb_surface_3d_dev.h" 8 #include "ppapi/c/dev/ppb_surface_3d_dev.h"
9 9
10 #include "ppapi/cpp/completion_callback.h"
10 #include "ppapi/cpp/instance.h" 11 #include "ppapi/cpp/instance.h"
11 #include "ppapi/cpp/resource.h" 12 #include "ppapi/cpp/resource.h"
12 13
13 namespace pp { 14 namespace pp {
14 15
15 class CompletionCallback; 16 class CompletionCallback;
16 17
17 class Surface3D_Dev : public Resource { 18 class Surface3D_Dev : public Resource {
18 public: 19 public:
19 // Creates an is_null() Surface3D object. 20 // Creates an is_null() Surface3D object.
20 Surface3D_Dev() {} 21 Surface3D_Dev() {}
21 22
22 Surface3D_Dev(const Instance& instance, 23 Surface3D_Dev(const Instance& instance,
23 PP_Config3D_Dev config, 24 PP_Config3D_Dev config,
24 const int32_t* attrib_list); 25 const int32_t* attrib_list);
25 26
26 // TODO(alokp): Add completion callback. 27 int32_t SwapBuffers(const CompletionCallback& cc) const;
27 int32_t SwapBuffers() const;
28 28
29 protected: 29 protected:
30 explicit Surface3D_Dev(PP_Resource resource_id) : Resource(resource_id) {} 30 explicit Surface3D_Dev(PP_Resource resource_id) : Resource(resource_id) {}
31 static Surface3D_Dev FromResource(PP_Resource resource_id); 31 static Surface3D_Dev FromResource(PP_Resource resource_id);
32 }; 32 };
33 33
34 } // namespace pp 34 } // namespace pp
35 35
36 #endif // PPAPI_CPP_DEV_SURFACE_3D_DEV_H_ 36 #endif // PPAPI_CPP_DEV_SURFACE_3D_DEV_H_
37 37
OLDNEW
« no previous file with comments | « gpu/demos/framework/pepper.cc ('k') | ppapi/cpp/dev/surface_3d_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698