Index: content/renderer/gpu/compositor_output_surface.cc |
diff --git a/content/renderer/gpu/compositor_output_surface.cc b/content/renderer/gpu/compositor_output_surface.cc |
index dd9d632bad46c66dc8511325b244b8bda55b1356..4e63462ece29d7edaa47f054a7878504bd3e428f 100644 |
--- a/content/renderer/gpu/compositor_output_surface.cc |
+++ b/content/renderer/gpu/compositor_output_surface.cc |
@@ -157,7 +157,7 @@ void CompositorOutputSurface::SwapBuffers(cc::CompositorFrame* frame) { |
} else { |
base::MessageLoopProxy::current()->PostTask(FROM_HERE, closure); |
} |
- DidSwapBuffers(); |
+ client_->DidSwapBuffers(); |
return; |
} |
@@ -165,7 +165,7 @@ void CompositorOutputSurface::SwapBuffers(cc::CompositorFrame* frame) { |
Send(new ViewHostMsg_SwapCompositorFrame(routing_id_, |
output_surface_id_, |
*frame)); |
- DidSwapBuffers(); |
+ client_->DidSwapBuffers(); |
return; |
} |
@@ -178,8 +178,6 @@ void CompositorOutputSurface::SwapBuffers(cc::CompositorFrame* frame) { |
DCHECK(command_buffer_proxy); |
command_buffer_proxy->SetLatencyInfo(frame->metadata.latency_info); |
} |
- |
- OutputSurface::SwapBuffers(frame); |
brianderson
2014/04/22 22:41:22
I shouldn't have removed this. Will add it back.
|
} |
void CompositorOutputSurface::OnMessageReceived(const IPC::Message& message) { |
@@ -207,14 +205,12 @@ void CompositorOutputSurface::OnUpdateVSyncParametersFromBrowser( |
#if defined(OS_ANDROID) |
void CompositorOutputSurface::SetNeedsBeginFrame(bool enable) { |
DCHECK(CalledOnValidThread()); |
- if (needs_begin_frame_ != enable) |
- Send(new ViewHostMsg_SetNeedsBeginFrame(routing_id_, enable)); |
- OutputSurface::SetNeedsBeginFrame(enable); |
+ Send(new ViewHostMsg_SetNeedsBeginFrame(routing_id_, enable)); |
} |
void CompositorOutputSurface::OnBeginFrame(const cc::BeginFrameArgs& args) { |
DCHECK(CalledOnValidThread()); |
- BeginFrame(args); |
+ client_->BeginFrame(args); |
} |
#endif // defined(OS_ANDROID) |
@@ -225,7 +221,7 @@ void CompositorOutputSurface::OnSwapAck(uint32 output_surface_id, |
if (output_surface_id != output_surface_id_) |
return; |
ReclaimResources(&ack); |
- OnSwapBuffersComplete(); |
+ client_->DidSwapBuffersComplete(); |
} |
void CompositorOutputSurface::OnReclaimResources( |