OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ui/aura/mus/window_compositor_frame_sink.h" | 5 #include "ui/aura/mus/window_compositor_frame_sink.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "cc/output/compositor_frame_sink_client.h" | 8 #include "cc/output/compositor_frame_sink_client.h" |
9 #include "gpu/ipc/client/gpu_channel_host.h" | 9 #include "gpu/ipc/client/gpu_channel_host.h" |
10 | 10 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 void WindowCompositorFrameSink::ReclaimResources( | 105 void WindowCompositorFrameSink::ReclaimResources( |
106 const cc::ReturnedResourceArray& resources) { | 106 const cc::ReturnedResourceArray& resources) { |
107 DCHECK(thread_checker_); | 107 DCHECK(thread_checker_); |
108 DCHECK(thread_checker_->CalledOnValidThread()); | 108 DCHECK(thread_checker_->CalledOnValidThread()); |
109 if (!client_) | 109 if (!client_) |
110 return; | 110 return; |
111 client_->ReclaimResources(resources); | 111 client_->ReclaimResources(resources); |
112 } | 112 } |
113 | 113 |
| 114 void WindowCompositorFrameSink::WillDrawSurface() {} |
| 115 |
114 void WindowCompositorFrameSink::OnNeedsBeginFrames(bool needs_begin_frames) { | 116 void WindowCompositorFrameSink::OnNeedsBeginFrames(bool needs_begin_frames) { |
115 compositor_frame_sink_->SetNeedsBeginFrame(needs_begin_frames); | 117 compositor_frame_sink_->SetNeedsBeginFrame(needs_begin_frames); |
116 } | 118 } |
117 | 119 |
118 WindowCompositorFrameSinkBinding::~WindowCompositorFrameSinkBinding() {} | 120 WindowCompositorFrameSinkBinding::~WindowCompositorFrameSinkBinding() {} |
119 | 121 |
120 WindowCompositorFrameSinkBinding::WindowCompositorFrameSinkBinding( | 122 WindowCompositorFrameSinkBinding::WindowCompositorFrameSinkBinding( |
121 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink_request, | 123 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink_request, |
122 mojo::InterfacePtrInfo<cc::mojom::MojoCompositorFrameSinkClient> | 124 mojo::InterfacePtrInfo<cc::mojom::MojoCompositorFrameSinkClient> |
123 compositor_frame_sink_client) | 125 compositor_frame_sink_client) |
124 : compositor_frame_sink_request_(std::move(compositor_frame_sink_request)), | 126 : compositor_frame_sink_request_(std::move(compositor_frame_sink_request)), |
125 compositor_frame_sink_client_(std::move(compositor_frame_sink_client)) {} | 127 compositor_frame_sink_client_(std::move(compositor_frame_sink_client)) {} |
126 | 128 |
127 } // namespace aura | 129 } // namespace aura |
OLD | NEW |