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
diff --git a/ppapi/proxy/ppapi_command_buffer_proxy.cc b/ppapi/proxy/ppapi_command_buffer_proxy.cc
index 98c2353..04c4468 100644
--- a/ppapi/proxy/ppapi_command_buffer_proxy.cc
+++ b/ppapi/proxy/ppapi_command_buffer_proxy.cc
@@ -60,8 +60,7 @@
}
bool PpapiCommandBufferProxy::Initialize() {
- return Send(new PpapiHostMsg_PPBGraphics3D_InitCommandBuffer(
- ppapi::API_ID_PPB_GRAPHICS_3D, resource_));
+ return true;
}
gpu::CommandBuffer::State PpapiCommandBufferProxy::GetState() {