Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(754)

Side by Side Diff: ui/aura/mus/window_compositor_frame_sink.cc

Issue 2493223002: Change exo::SurfaceFactoryOwner to exo::ExoCompositorFrameSink (Closed)
Patch Set: Addressed some comments and rebased Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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() {}
Fady Samuel 2016/11/23 15:39:02 Add a TODO to implement this.
Alex Z. 2016/11/23 17:46:09 Done.
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
OLDNEW
« components/exo/surface.cc ('K') | « ui/aura/mus/window_compositor_frame_sink.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698