OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "services/ui/ws/compositor_frame_sink_client_binding.h" | 5 #include "services/ui/ws/compositor_frame_sink_client_binding.h" |
6 | 6 |
7 namespace ui { | 7 namespace ui { |
8 namespace ws { | 8 namespace ws { |
9 | 9 |
10 CompositorFrameSinkClientBinding::CompositorFrameSinkClientBinding( | 10 CompositorFrameSinkClientBinding::CompositorFrameSinkClientBinding( |
(...skipping 19 matching lines...) Expand all Loading... |
30 local_surface_id_ = local_surface_id; | 30 local_surface_id_ = local_surface_id; |
31 gfx::Size frame_size = frame.render_pass_list.back()->output_rect.size(); | 31 gfx::Size frame_size = frame.render_pass_list.back()->output_rect.size(); |
32 display_private_->ResizeDisplay(frame_size); | 32 display_private_->ResizeDisplay(frame_size); |
33 display_private_->SetLocalSurfaceId(local_surface_id_, | 33 display_private_->SetLocalSurfaceId(local_surface_id_, |
34 frame.metadata.device_scale_factor); | 34 frame.metadata.device_scale_factor); |
35 } | 35 } |
36 compositor_frame_sink_->SubmitCompositorFrame(local_surface_id_, | 36 compositor_frame_sink_->SubmitCompositorFrame(local_surface_id_, |
37 std::move(frame)); | 37 std::move(frame)); |
38 } | 38 } |
39 | 39 |
40 void CompositorFrameSinkClientBinding::BeginFrameDidNotSwap( | 40 void CompositorFrameSinkClientBinding::DidNotProduceFrame( |
41 const cc::BeginFrameAck& ack) { | 41 const cc::BeginFrameAck& ack) { |
42 compositor_frame_sink_->BeginFrameDidNotSwap(ack); | 42 compositor_frame_sink_->DidNotProduceFrame(ack); |
43 } | 43 } |
44 | 44 |
45 void CompositorFrameSinkClientBinding::EvictCurrentSurface() { | 45 void CompositorFrameSinkClientBinding::EvictCurrentSurface() { |
46 compositor_frame_sink_->EvictCurrentSurface(); | 46 compositor_frame_sink_->EvictCurrentSurface(); |
47 } | 47 } |
48 | 48 |
49 } // namespace ws | 49 } // namespace ws |
50 } // namespace ui | 50 } // namespace ui |
OLD | NEW |