diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-31 20:11:41 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-31 20:11:41 +0000 |
commit | 30de8559a38a47d368e0869f86b27651e277fbfe (patch) | |
tree | 13da1014dd77e9019e4e8abba24ceb8447e8ce78 /ppapi/thunk | |
parent | a6e595833d7affc272d620c5e75b22fde5371720 (diff) | |
download | chromium_src-30de8559a38a47d368e0869f86b27651e277fbfe.zip chromium_src-30de8559a38a47d368e0869f86b27651e277fbfe.tar.gz chromium_src-30de8559a38a47d368e0869f86b27651e277fbfe.tar.bz2 |
pepper: simplify context creation/initialization
This saves a round-trip. We don't need client-side info (e.g. shm buffer) any
more before context initialization, so we can do the initialization completely
on the renderer side before returning the resource, saving one sync round-trip.
A side benefit is that now we can guarantee we only call SetParent after
initialization, simplifying transient states.
BUG=164095
Review URL: https://chromiumcodereview.appspot.com/15679013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203464 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/thunk')
-rw-r--r-- | ppapi/thunk/ppb_graphics_3d_api.h | 1 | ||||
-rw-r--r-- | ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/ppapi/thunk/ppb_graphics_3d_api.h b/ppapi/thunk/ppb_graphics_3d_api.h index dc53b13..e7b98d2 100644 --- a/ppapi/thunk/ppb_graphics_3d_api.h +++ b/ppapi/thunk/ppb_graphics_3d_api.h @@ -30,7 +30,6 @@ class PPAPI_THUNK_EXPORT PPB_Graphics3D_API { virtual int32_t GetAttribMaxValue(int32_t attribute, int32_t* value) = 0; // Graphics3DTrusted API. - virtual PP_Bool InitCommandBuffer() = 0; virtual PP_Bool SetGetBuffer(int32_t shm_id) = 0; virtual PP_Graphics3DTrustedState GetState() = 0; virtual int32_t CreateTransferBuffer(uint32_t size) = 0; diff --git a/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc b/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc index 48f6ed1..e3fe422 100644 --- a/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc +++ b/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc @@ -34,7 +34,7 @@ PP_Bool InitCommandBuffer(PP_Resource context) { EnterGraphics3D enter(context, true); if (enter.failed()) return PP_FALSE; - return enter.object()->InitCommandBuffer(); + return PP_TRUE; } PP_Bool SetGetBuffer(PP_Resource context, int32_t transfer_buffer_id) { |