summaryrefslogtreecommitdiffstats
path: root/ppapi/shared_impl
diff options
context:
space:
mode:
authoralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-03 03:19:35 +0000
committeralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-03 03:19:35 +0000
commit187a88c6fc8a24487dbfd45d965627b5e586e734 (patch)
tree0f5d8e1f079f6a141d4c6224a45acc55f75a71ea /ppapi/shared_impl
parentade4b6d09fc4b6441cf72dbda0432cf2f93209db (diff)
downloadchromium_src-187a88c6fc8a24487dbfd45d965627b5e586e734.zip
chromium_src-187a88c6fc8a24487dbfd45d965627b5e586e734.tar.gz
chromium_src-187a88c6fc8a24487dbfd45d965627b5e586e734.tar.bz2
Pepper 3D API changes:
1. Added GetAttribMaxValue() and GetError() 2. Fixed the documentation for SwapBuffers() 3. Replaced PP_GRAPHICS3DERROR_CONTEXT_LOST with PP_ERROR_CONTEXT_LOST Review URL: http://codereview.chromium.org/7824040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99532 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/shared_impl')
-rw-r--r--ppapi/shared_impl/graphics_3d_impl.cc5
-rw-r--r--ppapi/shared_impl/graphics_3d_impl.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/ppapi/shared_impl/graphics_3d_impl.cc b/ppapi/shared_impl/graphics_3d_impl.cc
index cb21e77..00555de 100644
--- a/ppapi/shared_impl/graphics_3d_impl.cc
+++ b/ppapi/shared_impl/graphics_3d_impl.cc
@@ -33,6 +33,11 @@ int32_t Graphics3DImpl::SetAttribs(int32_t* attrib_list) {
return PP_ERROR_FAILED;
}
+int32_t Graphics3DImpl::GetError() {
+ // TODO(alokp): Implement me.
+ return PP_ERROR_FAILED;
+}
+
int32_t Graphics3DImpl::ResizeBuffers(int32_t width, int32_t height) {
if ((width < 0) || (height < 0))
return PP_ERROR_BADARGUMENT;
diff --git a/ppapi/shared_impl/graphics_3d_impl.h b/ppapi/shared_impl/graphics_3d_impl.h
index a22cdee..07fe967 100644
--- a/ppapi/shared_impl/graphics_3d_impl.h
+++ b/ppapi/shared_impl/graphics_3d_impl.h
@@ -26,6 +26,7 @@ class PPAPI_SHARED_EXPORT Graphics3DImpl : public thunk::PPB_Graphics3D_API {
// PPB_Graphics3D_API implementation.
virtual int32_t GetAttribs(int32_t* attrib_list) OVERRIDE;
virtual int32_t SetAttribs(int32_t* attrib_list) OVERRIDE;
+ virtual int32_t GetError() OVERRIDE;
virtual int32_t ResizeBuffers(int32_t width, int32_t height) OVERRIDE;
virtual int32_t SwapBuffers(PP_CompletionCallback callback) OVERRIDE;
virtual void* MapTexSubImage2DCHROMIUM(GLenum target,