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

Side by Side Diff: services/ui/surfaces/compositor_frame_sink.cc

Issue 2431753002: Mus experiment in content shell on Android.
Patch Set: Fixed gn check 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/surfaces/compositor_frame_sink.h" 5 #include "services/ui/surfaces/compositor_frame_sink.h"
6 6
7 #include "cc/output/copy_output_request.h" 7 #include "cc/output/copy_output_request.h"
8 #include "cc/output/output_surface.h" 8 #include "cc/output/output_surface.h"
9 #include "cc/output/renderer_settings.h" 9 #include "cc/output/renderer_settings.h"
10 #include "cc/output/texture_mailbox_deleter.h" 10 #include "cc/output/texture_mailbox_deleter.h"
(...skipping 10 matching lines...) Expand all
21 #include "gpu/command_buffer/client/gles2_interface.h" 21 #include "gpu/command_buffer/client/gles2_interface.h"
22 #include "services/ui/surfaces/direct_output_surface_ozone.h" 22 #include "services/ui/surfaces/direct_output_surface_ozone.h"
23 #endif 23 #endif
24 24
25 namespace ui { 25 namespace ui {
26 namespace surfaces { 26 namespace surfaces {
27 27
28 CompositorFrameSink::CompositorFrameSink( 28 CompositorFrameSink::CompositorFrameSink(
29 const cc::FrameSinkId& frame_sink_id, 29 const cc::FrameSinkId& frame_sink_id,
30 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 30 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
31 gfx::AcceleratedWidget widget, 31 gpu::SurfaceHandle widget,
32 scoped_refptr<gpu::GpuChannelHost> gpu_channel, 32 scoped_refptr<gpu::GpuChannelHost> gpu_channel,
33 const scoped_refptr<DisplayCompositor>& display_compositor) 33 const scoped_refptr<DisplayCompositor>& display_compositor)
34 : frame_sink_id_(frame_sink_id), 34 : frame_sink_id_(frame_sink_id),
35 task_runner_(task_runner), 35 task_runner_(task_runner),
36 display_compositor_(display_compositor), 36 display_compositor_(display_compositor),
37 factory_(frame_sink_id_, display_compositor->manager(), this) { 37 factory_(frame_sink_id_, display_compositor->manager(), this) {
38 display_compositor_->manager()->RegisterFrameSinkId(frame_sink_id_); 38 display_compositor_->manager()->RegisterFrameSinkId(frame_sink_id_);
39 display_compositor_->manager()->RegisterSurfaceFactoryClient(frame_sink_id_, 39 display_compositor_->manager()->RegisterSurfaceFactoryClient(frame_sink_id_,
40 this); 40 this);
41 41
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 } 133 }
134 134
135 void CompositorFrameSink::DisplayDidDrawAndSwap() { 135 void CompositorFrameSink::DisplayDidDrawAndSwap() {
136 // This notification is not relevant to our client outside of tests. We 136 // This notification is not relevant to our client outside of tests. We
137 // unblock the client from the DrawCallback when the surface is going to 137 // unblock the client from the DrawCallback when the surface is going to
138 // be drawn. 138 // be drawn.
139 } 139 }
140 140
141 } // namespace surfaces 141 } // namespace surfaces
142 } // namespace ui 142 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698