diff options
author | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-16 21:02:52 +0000 |
---|---|---|
committer | alokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-16 21:02:52 +0000 |
commit | 9d8fe828142f8d57b1966f711c194b4c2ef36614 (patch) | |
tree | 158f34ee464ae078c39818464e3ec0d5733c852c /webkit/plugins/ppapi/ppb_context_3d_impl.cc | |
parent | c78faffd1c85cc34d6dbaa0b26db89c3e87e8675 (diff) | |
download | chromium_src-9d8fe828142f8d57b1966f711c194b4c2ef36614.zip chromium_src-9d8fe828142f8d57b1966f711c194b4c2ef36614.tar.gz chromium_src-9d8fe828142f8d57b1966f711c194b4c2ef36614.tar.bz2 |
Removed config management from Graphics3D API. It will be better handled in the EGL helper library.
Also removed redundant enums from the API.
Review URL: http://codereview.chromium.org/7576012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97019 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/ppapi/ppb_context_3d_impl.cc')
-rw-r--r-- | webkit/plugins/ppapi/ppb_context_3d_impl.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webkit/plugins/ppapi/ppb_context_3d_impl.cc b/webkit/plugins/ppapi/ppb_context_3d_impl.cc index bcb44dd..3aa2037 100644 --- a/webkit/plugins/ppapi/ppb_context_3d_impl.cc +++ b/webkit/plugins/ppapi/ppb_context_3d_impl.cc @@ -152,13 +152,13 @@ int32_t PPB_Context3D_Impl::BindSurfacesImpl(PPB_Surface3D_Impl* new_draw, // TODO(alokp): Support separate draw-read surfaces. DCHECK_EQ(new_draw, new_read); if (new_draw != new_read) - return PP_GRAPHICS3DERROR_BAD_MATCH; + return PP_ERROR_NOTSUPPORTED; if (new_draw == draw_surface_) return PP_OK; if (new_draw && new_draw->context()) - return PP_GRAPHICS3DERROR_BAD_ACCESS; // Already bound. + return PP_ERROR_BADARGUMENT; // Already bound. if (draw_surface_) draw_surface_->BindToContext(NULL); @@ -302,7 +302,7 @@ bool PPB_Context3D_Impl::InitRaw(PP_Config3D_Dev config, PP_GRAPHICS3DATTRIB_SAMPLE_BUFFERS, 0, PP_GRAPHICS3DATTRIB_HEIGHT, 1, PP_GRAPHICS3DATTRIB_WIDTH, 1, - PP_GRAPHICS3DATTRIBVALUE_NONE, + PP_GRAPHICS3DATTRIB_NONE, }; if (!platform_context_->Init(kAttribs)) { Destroy(); |