ppapi: Unit tests for pepper command buffer proxy
Similar to the IPC command buffer proxy unit tests.
R=piman
BUG=824510
Change-Id: I14ecfc448e12d4f143b645cc9290c476fdbf5d0d
Reviewed-on: https://chromium-review.googlesource.com/978959
Commit-Queue: Sunny Sachanandani <[email protected]>
Reviewed-by: Bill Budge <[email protected]>
Reviewed-by: Antoine Labour <[email protected]>
Cr-Commit-Position: refs/heads/master@{#545899}
diff --git a/ppapi/proxy/ppb_graphics_3d_proxy.cc b/ppapi/proxy/ppb_graphics_3d_proxy.cc
index ea77cd1..07b1974 100644
--- a/ppapi/proxy/ppb_graphics_3d_proxy.cc
+++ b/ppapi/proxy/ppb_graphics_3d_proxy.cc
@@ -61,9 +61,12 @@
if (!dispatcher)
return false;
+ InstanceData* data = dispatcher->GetInstanceData(host_resource().instance());
+ DCHECK(data);
+
command_buffer_.reset(new PpapiCommandBufferProxy(
- host_resource(), dispatcher, capabilities, shared_state,
- command_buffer_id));
+ host_resource(), &data->flush_info, dispatcher, capabilities,
+ shared_state, command_buffer_id));
return CreateGLES2Impl(share_gles2);
}