| Index: cc/surfaces/direct_compositor_frame_sink.cc
|
| diff --git a/cc/surfaces/direct_compositor_frame_sink.cc b/cc/surfaces/direct_compositor_frame_sink.cc
|
| index 2552a3c6030d9ef8f9a1d995242cbca50d3163ae..b96cbbc93a327958a5e5940e418868020db009aa 100644
|
| --- a/cc/surfaces/direct_compositor_frame_sink.cc
|
| +++ b/cc/surfaces/direct_compositor_frame_sink.cc
|
| @@ -79,7 +79,6 @@
|
|
|
| void DirectCompositorFrameSink::DetachFromClient() {
|
| DCHECK(HasClient());
|
| -
|
| // Unregister the SurfaceFactoryClient here instead of the dtor so that only
|
| // one client is alive for this namespace at any given time.
|
| surface_manager_->UnregisterSurfaceFactoryClient(
|
| @@ -147,7 +146,9 @@
|
| }
|
|
|
| void DirectCompositorFrameSink::DidDrawCallback() {
|
| - CompositorFrameSink::PostSwapBuffersComplete();
|
| + // TODO(danakj): Why the lost check?
|
| + if (!is_lost_)
|
| + client_->DidSwapBuffersComplete();
|
| }
|
|
|
| } // namespace cc
|
|
|