| 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 27e2aed52cf1cbbf70a90ac454f0c260960613b0..bc8e7ed91e881ec80dee1ae1d8a6918a586e63d9 100644
|
| --- a/cc/surfaces/direct_compositor_frame_sink.cc
|
| +++ b/cc/surfaces/direct_compositor_frame_sink.cc
|
| @@ -89,8 +89,7 @@ void DirectCompositorFrameSink::DetachFromClient() {
|
| }
|
|
|
| void DirectCompositorFrameSink::SubmitCompositorFrame(CompositorFrame frame) {
|
| - gfx::Size frame_size =
|
| - frame.delegated_frame_data->render_pass_list.back()->output_rect.size();
|
| + gfx::Size frame_size = frame.render_pass_list.back()->output_rect.size();
|
| if (frame_size.IsEmpty() || frame_size != last_swap_frame_size_) {
|
| if (delegated_local_frame_id_.is_valid()) {
|
| factory_.Destroy(delegated_local_frame_id_);
|
| @@ -109,10 +108,8 @@ void DirectCompositorFrameSink::SubmitCompositorFrame(CompositorFrame frame) {
|
| }
|
|
|
| void DirectCompositorFrameSink::ForceReclaimResources() {
|
| - if (delegated_local_frame_id_.is_valid()) {
|
| - factory_.SubmitCompositorFrame(delegated_local_frame_id_, CompositorFrame(),
|
| - SurfaceFactory::DrawCallback());
|
| - }
|
| + if (delegated_local_frame_id_.is_valid())
|
| + factory_.ClearSurface(delegated_local_frame_id_);
|
| }
|
|
|
| void DirectCompositorFrameSink::ReturnResources(
|
|
|