OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/surfaces/gpu_compositor_frame_sink.h" | 5 #include "services/ui/surfaces/gpu_compositor_frame_sink.h" |
6 | 6 |
7 #include "services/ui/surfaces/display_compositor.h" | 7 #include "services/ui/surfaces/display_compositor.h" |
8 | 8 |
9 namespace ui { | 9 namespace ui { |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... | |
40 void GpuCompositorFrameSink::SetNeedsBeginFrame(bool needs_begin_frame) { | 40 void GpuCompositorFrameSink::SetNeedsBeginFrame(bool needs_begin_frame) { |
41 support_.SetNeedsBeginFrame(needs_begin_frame); | 41 support_.SetNeedsBeginFrame(needs_begin_frame); |
42 } | 42 } |
43 | 43 |
44 void GpuCompositorFrameSink::SubmitCompositorFrame( | 44 void GpuCompositorFrameSink::SubmitCompositorFrame( |
45 const cc::LocalFrameId& local_frame_id, | 45 const cc::LocalFrameId& local_frame_id, |
46 cc::CompositorFrame frame) { | 46 cc::CompositorFrame frame) { |
47 support_.SubmitCompositorFrame(local_frame_id, std::move(frame)); | 47 support_.SubmitCompositorFrame(local_frame_id, std::move(frame)); |
48 } | 48 } |
49 | 49 |
50 void GpuCompositorFrameSink::Require(const cc::LocalFrameId& local_frame_id, | |
51 const cc::SurfaceSequence& sequence) { | |
52 // TODO(staraz): Implement this. | |
53 NOTIMPLEMENTED(); | |
Fady Samuel
2016/12/05 16:40:31
Stick the implementation in CompositorFrameSinkSup
Alex Z.
2016/12/06 20:10:41
Done.
| |
54 } | |
55 | |
56 void GpuCompositorFrameSink::Satisfy(const cc::SurfaceSequence& sequence) { | |
57 // TODO(staraz): Implement this. | |
58 NOTIMPLEMENTED(); | |
59 } | |
60 | |
50 void GpuCompositorFrameSink::DidReceiveCompositorFrameAck() { | 61 void GpuCompositorFrameSink::DidReceiveCompositorFrameAck() { |
51 client_->DidReceiveCompositorFrameAck(); | 62 client_->DidReceiveCompositorFrameAck(); |
52 } | 63 } |
53 | 64 |
54 void GpuCompositorFrameSink::AddChildFrameSink( | 65 void GpuCompositorFrameSink::AddChildFrameSink( |
55 const cc::FrameSinkId& child_frame_sink_id) { | 66 const cc::FrameSinkId& child_frame_sink_id) { |
56 support_.AddChildFrameSink(child_frame_sink_id); | 67 support_.AddChildFrameSink(child_frame_sink_id); |
57 } | 68 } |
58 | 69 |
59 void GpuCompositorFrameSink::RemoveChildFrameSink( | 70 void GpuCompositorFrameSink::RemoveChildFrameSink( |
(...skipping 25 matching lines...) Expand all Loading... | |
85 } | 96 } |
86 | 97 |
87 void GpuCompositorFrameSink::OnPrivateConnectionLost() { | 98 void GpuCompositorFrameSink::OnPrivateConnectionLost() { |
88 private_connection_lost_ = true; | 99 private_connection_lost_ = true; |
89 // Request destruction of |this| only if both connections are lost. | 100 // Request destruction of |this| only if both connections are lost. |
90 display_compositor_->OnCompositorFrameSinkPrivateConnectionLost( | 101 display_compositor_->OnCompositorFrameSinkPrivateConnectionLost( |
91 support_.frame_sink_id(), client_connection_lost_); | 102 support_.frame_sink_id(), client_connection_lost_); |
92 } | 103 } |
93 | 104 |
94 } // namespace ui | 105 } // namespace ui |
OLD | NEW |