diff options
author | nfullagar@google.com <nfullagar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-06 23:11:53 +0000 |
---|---|---|
committer | nfullagar@google.com <nfullagar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-06 23:11:53 +0000 |
commit | d3a250fc8802f10bc22d9f04475867821fa45f57 (patch) | |
tree | 6bcdec51bd5fd7949882aa2f03da94f7a7def95a /ppapi/cpp/graphics_3d.h | |
parent | 5031ca3bb62745e1da95bffbf401db75df03115f (diff) | |
download | chromium_src-d3a250fc8802f10bc22d9f04475867821fa45f57.zip chromium_src-d3a250fc8802f10bc22d9f04475867821fa45f57.tar.gz chromium_src-d3a250fc8802f10bc22d9f04475867821fa45f57.tar.bz2 |
Move PPAPI graphics3d and opengles interfaces out of Dev.
BUG= http://code.google.com/p/chromium/issues/detail?id=94320
TEST= various nacl exmaples, try bots
Review URL: http://codereview.chromium.org/7737013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99855 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp/graphics_3d.h')
-rw-r--r-- | ppapi/cpp/graphics_3d.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/ppapi/cpp/graphics_3d.h b/ppapi/cpp/graphics_3d.h new file mode 100644 index 0000000..aaa6d08 --- /dev/null +++ b/ppapi/cpp/graphics_3d.h @@ -0,0 +1,39 @@ +// 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. + +#ifndef PPAPI_CPP_GRAPHICS_3D_H_ +#define PPAPI_CPP_GRAPHICS_3D_H_ + +#include "ppapi/c/ppb_graphics_3d.h" +#include "ppapi/cpp/resource.h" + +namespace pp { + +class CompletionCallback; +class Instance; +class Var; + +class Graphics3D : public Resource { + public: + // Creates an is_null() Graphics3D_Dev object. + Graphics3D(); + + Graphics3D(const Instance& instance, + const Graphics3D& share_context, + const int32_t* attrib_list); + + ~Graphics3D(); + + int32_t GetAttribs(int32_t* attrib_list) const; + int32_t SetAttribs(int32_t* attrib_list); + + int32_t ResizeBuffers(int32_t width, int32_t height); + + int32_t SwapBuffers(const CompletionCallback& cc); +}; + +} // namespace pp + +#endif // PPAPI_CPP_GRAPHICS_3D_H_ + |