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

Side by Side Diff: services/ui/gpu/display_compositor/compositor_frame_sink_impl.cc

Issue 2386763002: services/ui: Match naming in cc (and jellyfish branch) (Closed)
Patch Set: Removed bad change Created 4 years, 2 months 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "services/ui/gpu/display_compositor/compositor_frame_sink_impl.h" 5 #include "services/ui/gpu/display_compositor/compositor_frame_sink_impl.h"
6 6
7 #include "cc/ipc/compositor_frame.mojom.h" 7 #include "cc/ipc/compositor_frame.mojom.h"
8 #include "cc/surfaces/surface_factory.h" 8 #include "cc/surfaces/surface_factory.h"
9 #include "services/ui/gpu/display_compositor/compositor_frame_sink_delegate.h" 9 #include "services/ui/gpu/display_compositor/compositor_frame_sink_delegate.h"
10 10
11 namespace ui { 11 namespace ui {
12 namespace gpu { 12 namespace gpu {
13 13
14 CompositorFrameSinkImpl::CompositorFrameSinkImpl( 14 CompositorFrameSinkImpl::CompositorFrameSinkImpl(
15 CompositorFrameSinkDelegate* delegate, 15 CompositorFrameSinkDelegate* delegate,
16 int sink_id, 16 int sink_id,
17 const scoped_refptr<SurfacesState>& surfaces_state, 17 const scoped_refptr<DisplayCompositor>& surfaces_state,
18 mojo::InterfaceRequest<mojom::CompositorFrameSink> request, 18 mojo::InterfaceRequest<mojom::CompositorFrameSink> request,
19 mojom::CompositorFrameSinkClientPtr client) 19 mojom::CompositorFrameSinkClientPtr client)
20 : delegate_(delegate), 20 : delegate_(delegate),
21 surfaces_state_(surfaces_state), 21 surfaces_state_(surfaces_state),
22 sink_id_(sink_id), 22 sink_id_(sink_id),
23 begin_frame_source_(nullptr), 23 begin_frame_source_(nullptr),
24 needs_begin_frame_(false), 24 needs_begin_frame_(false),
25 factory_(surfaces_state->manager(), this), 25 factory_(surfaces_state->manager(), this),
26 client_(std::move(client)), 26 client_(std::move(client)),
27 binding_(this, std::move(request)) { 27 binding_(this, std::move(request)) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void CompositorFrameSinkImpl::OnBeginFrameSourcePausedChanged(bool paused) { 94 void CompositorFrameSinkImpl::OnBeginFrameSourcePausedChanged(bool paused) {
95 // TODO(fsamuel): Implement this. 95 // TODO(fsamuel): Implement this.
96 } 96 }
97 97
98 void CompositorFrameSinkImpl::OnConnectionLost() { 98 void CompositorFrameSinkImpl::OnConnectionLost() {
99 delegate_->CompositorFrameSinkConnectionLost(sink_id_); 99 delegate_->CompositorFrameSinkConnectionLost(sink_id_);
100 } 100 }
101 101
102 } // namespace gpu 102 } // namespace gpu
103 } // namespace ui 103 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/gpu/display_compositor/compositor_frame_sink_impl.h ('k') | services/ui/gpu/display_compositor/display_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698