// BrowserPlugin is modified to use a RenderFrame.
if (GetBrowserPluginManager()) {
GetBrowserPluginManager()->Send(new BrowserPluginHostMsg_BuffersSwappedACK(
- host_routing_id_, GetInstanceID(), params));
+ host_routing_id_, params));
} else if (render_frame_) {
render_frame_->Send(
new FrameHostMsg_BuffersSwappedACK(host_routing_id_, params));
scoped_ptr<cc::CompositorFrame> frame,
int route_id,
uint32 output_surface_id,
- int host_id) {
+ int host_id,
+ base::SharedMemoryHandle handle) {
if (frame->gl_frame_data) {
SwapBuffersInfo swap_info;
swap_info.software_frame_id = frame_data->id;
scoped_ptr<base::SharedMemory> shared_memory(
- new base::SharedMemory(frame_data->handle, true));
+ new base::SharedMemory(handle, true));
const size_t size_in_bytes = 4 * frame_data->size.GetArea();
if (!shared_memory->Map(size_in_bytes)) {
LOG(ERROR) << "Failed to map shared memory of size " << size_in_bytes;