diff options
author | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-19 16:35:41 +0000 |
---|---|---|
committer | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-19 16:35:41 +0000 |
commit | 05671a8a7551fc0f1e2d576a2b9bdea61f4167a2 (patch) | |
tree | abb1756b935e22b29978722f9bf245784d18ef22 /ppapi/cpp/dev/graphics_3d_dev.h | |
parent | 74f4b46ab44016f9e7ad56cde5916ffbc45723d3 (diff) | |
download | chromium_src-05671a8a7551fc0f1e2d576a2b9bdea61f4167a2.zip chromium_src-05671a8a7551fc0f1e2d576a2b9bdea61f4167a2.tar.gz chromium_src-05671a8a7551fc0f1e2d576a2b9bdea61f4167a2.tar.bz2 |
Implemented cpp interface for PPB_Graphics3D_Dev. Needed to port gpu demos.
TBR=piman
Review URL: http://codereview.chromium.org/6816028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93037 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp/dev/graphics_3d_dev.h')
-rw-r--r-- | ppapi/cpp/dev/graphics_3d_dev.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/ppapi/cpp/dev/graphics_3d_dev.h b/ppapi/cpp/dev/graphics_3d_dev.h index dece4c0..0b967ad 100644 --- a/ppapi/cpp/dev/graphics_3d_dev.h +++ b/ppapi/cpp/dev/graphics_3d_dev.h @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 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. @@ -6,13 +6,26 @@ #define PPAPI_CPP_DEV_GRAPHICS_3D_DEV_H_ #include "ppapi/c/dev/ppb_graphics_3d_dev.h" +#include "ppapi/cpp/resource.h" namespace pp { +class CompletionCallback; +class Instance; class Var; -class Graphics3D_Dev { +class Graphics3D_Dev : public Resource { public: + // Creates an is_null() Graphics3D_Dev object. + Graphics3D_Dev(); + + Graphics3D_Dev(const Instance& instance, + PP_Config3D_Dev config, + const Graphics3D_Dev& share_context, + const int32_t* attrib_list); + + ~Graphics3D_Dev(); + static int32_t GetConfigs(PP_Config3D_Dev* configs, int32_t config_size, int32_t* num_config); @@ -21,6 +34,11 @@ class Graphics3D_Dev { int32_t* attrib_list); static Var GetString(int32_t name); + + int32_t GetAttribs(int32_t* attrib_list) const; + int32_t SetAttribs(int32_t* attrib_list); + + int32_t SwapBuffers(const CompletionCallback& cc); }; } // namespace pp |