| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  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() { |  114 void WindowCompositorFrameSink::WillDrawSurface() { | 
|  115   // TODO(fsamuel, staraz): Implement this. |  115   // TODO(fsamuel, staraz): Implement this. | 
|  116   NOTIMPLEMENTED(); |  | 
|  117 } |  116 } | 
|  118  |  117  | 
|  119 void WindowCompositorFrameSink::OnNeedsBeginFrames(bool needs_begin_frames) { |  118 void WindowCompositorFrameSink::OnNeedsBeginFrames(bool needs_begin_frames) { | 
|  120   compositor_frame_sink_->SetNeedsBeginFrame(needs_begin_frames); |  119   compositor_frame_sink_->SetNeedsBeginFrame(needs_begin_frames); | 
|  121 } |  120 } | 
|  122  |  121  | 
|  123 WindowCompositorFrameSinkBinding::~WindowCompositorFrameSinkBinding() {} |  122 WindowCompositorFrameSinkBinding::~WindowCompositorFrameSinkBinding() {} | 
|  124  |  123  | 
|  125 WindowCompositorFrameSinkBinding::WindowCompositorFrameSinkBinding( |  124 WindowCompositorFrameSinkBinding::WindowCompositorFrameSinkBinding( | 
|  126     cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink_request, |  125     cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink_request, | 
|  127     mojo::InterfacePtrInfo<cc::mojom::MojoCompositorFrameSinkClient> |  126     mojo::InterfacePtrInfo<cc::mojom::MojoCompositorFrameSinkClient> | 
|  128         compositor_frame_sink_client) |  127         compositor_frame_sink_client) | 
|  129     : compositor_frame_sink_request_(std::move(compositor_frame_sink_request)), |  128     : compositor_frame_sink_request_(std::move(compositor_frame_sink_request)), | 
|  130       compositor_frame_sink_client_(std::move(compositor_frame_sink_client)) {} |  129       compositor_frame_sink_client_(std::move(compositor_frame_sink_client)) {} | 
|  131  |  130  | 
|  132 }  // namespace aura |  131 }  // namespace aura | 
| OLD | NEW |