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

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

Issue 2544103002: Added MojoCompositorFrameSink::EvictFrame() and MojoCompositorFrameSinkClient::WillDrawSurface() (Closed)
Patch Set: Addressed a comment 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() {
115 // TODO(fsamuel, staraz): Implement this.
116 NOTIMPLEMENTED();
kylechar 2016/12/05 15:18:31 Same problem here.
117 }
118
114 void WindowCompositorFrameSink::OnNeedsBeginFrames(bool needs_begin_frames) { 119 void WindowCompositorFrameSink::OnNeedsBeginFrames(bool needs_begin_frames) {
115 compositor_frame_sink_->SetNeedsBeginFrame(needs_begin_frames); 120 compositor_frame_sink_->SetNeedsBeginFrame(needs_begin_frames);
116 } 121 }
117 122
118 WindowCompositorFrameSinkBinding::~WindowCompositorFrameSinkBinding() {} 123 WindowCompositorFrameSinkBinding::~WindowCompositorFrameSinkBinding() {}
119 124
120 WindowCompositorFrameSinkBinding::WindowCompositorFrameSinkBinding( 125 WindowCompositorFrameSinkBinding::WindowCompositorFrameSinkBinding(
121 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink_request, 126 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink_request,
122 mojo::InterfacePtrInfo<cc::mojom::MojoCompositorFrameSinkClient> 127 mojo::InterfacePtrInfo<cc::mojom::MojoCompositorFrameSinkClient>
123 compositor_frame_sink_client) 128 compositor_frame_sink_client)
124 : compositor_frame_sink_request_(std::move(compositor_frame_sink_request)), 129 : compositor_frame_sink_request_(std::move(compositor_frame_sink_request)),
125 compositor_frame_sink_client_(std::move(compositor_frame_sink_client)) {} 130 compositor_frame_sink_client_(std::move(compositor_frame_sink_client)) {}
126 131
127 } // namespace aura 132 } // namespace aura
OLDNEW
« services/ui/ws/frame_generator.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