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

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

Issue 2493223002: Change exo::SurfaceFactoryOwner to exo::ExoCompositorFrameSink (Closed)
Patch Set: Undid a change on an if condition in exo::Surface::CommitSurfaceHierarchy() 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 // TODO: Implement this.
Fady Samuel 2016/11/30 16:41:57 Move inside of the method's block. Also, add an LD
Alex Z. 2016/11/30 20:00:30 Done.
115 void WindowCompositorFrameSink::WillDrawSurface() {}
116
114 void WindowCompositorFrameSink::OnNeedsBeginFrames(bool needs_begin_frames) { 117 void WindowCompositorFrameSink::OnNeedsBeginFrames(bool needs_begin_frames) {
115 compositor_frame_sink_->SetNeedsBeginFrame(needs_begin_frames); 118 compositor_frame_sink_->SetNeedsBeginFrame(needs_begin_frames);
116 } 119 }
117 120
118 WindowCompositorFrameSinkBinding::~WindowCompositorFrameSinkBinding() {} 121 WindowCompositorFrameSinkBinding::~WindowCompositorFrameSinkBinding() {}
119 122
120 WindowCompositorFrameSinkBinding::WindowCompositorFrameSinkBinding( 123 WindowCompositorFrameSinkBinding::WindowCompositorFrameSinkBinding(
121 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink_request, 124 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink_request,
122 mojo::InterfacePtrInfo<cc::mojom::MojoCompositorFrameSinkClient> 125 mojo::InterfacePtrInfo<cc::mojom::MojoCompositorFrameSinkClient>
123 compositor_frame_sink_client) 126 compositor_frame_sink_client)
124 : compositor_frame_sink_request_(std::move(compositor_frame_sink_request)), 127 : compositor_frame_sink_request_(std::move(compositor_frame_sink_request)),
125 compositor_frame_sink_client_(std::move(compositor_frame_sink_client)) {} 128 compositor_frame_sink_client_(std::move(compositor_frame_sink_client)) {}
126 129
127 } // namespace aura 130 } // namespace aura
OLDNEW
« components/exo/test/exo_test_base.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