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

Side by Side Diff: components/exo/compositor_frame_sink.cc

Issue 2683583005: Move display_ From CompositorFrameSinkSupport To GpuDisplayCompositorFrameSink (Closed)
Patch Set: rebase Created 3 years, 10 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 "components/exo/compositor_frame_sink.h" 5 #include "components/exo/compositor_frame_sink.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "cc/surfaces/surface.h" 8 #include "cc/surfaces/surface.h"
9 #include "cc/surfaces/surface_manager.h" 9 #include "cc/surfaces/surface_manager.h"
10 #include "components/exo/compositor_frame_sink_holder.h" 10 #include "components/exo/compositor_frame_sink_holder.h"
11 #include "mojo/public/cpp/bindings/strong_binding.h" 11 #include "mojo/public/cpp/bindings/strong_binding.h"
12 12
13 namespace exo { 13 namespace exo {
14 14
15 //////////////////////////////////////////////////////////////////////////////// 15 ////////////////////////////////////////////////////////////////////////////////
16 // ExoComopositorFrameSink, public: 16 // ExoComopositorFrameSink, public:
17 17
18 CompositorFrameSink::CompositorFrameSink(const cc::FrameSinkId& frame_sink_id, 18 CompositorFrameSink::CompositorFrameSink(const cc::FrameSinkId& frame_sink_id,
19 cc::SurfaceManager* surface_manager, 19 cc::SurfaceManager* surface_manager,
20 CompositorFrameSinkHolder* client) 20 CompositorFrameSinkHolder* client)
21 : support_(this, surface_manager, frame_sink_id, nullptr, nullptr), 21 : support_(this,
22 surface_manager,
23 frame_sink_id,
24 false /* submits_to_display_compositor */),
22 client_(client) {} 25 client_(client) {}
23 26
24 CompositorFrameSink::~CompositorFrameSink() {} 27 CompositorFrameSink::~CompositorFrameSink() {}
25 28
26 //////////////////////////////////////////////////////////////////////////////// 29 ////////////////////////////////////////////////////////////////////////////////
27 // cc::mojom::MojoCompositorFrameSink overrides: 30 // cc::mojom::MojoCompositorFrameSink overrides:
28 31
29 void CompositorFrameSink::SetNeedsBeginFrame(bool needs_begin_frame) { 32 void CompositorFrameSink::SetNeedsBeginFrame(bool needs_begin_frame) {
30 support_.SetNeedsBeginFrame(needs_begin_frame); 33 support_.SetNeedsBeginFrame(needs_begin_frame);
31 } 34 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void CompositorFrameSink::ReclaimResources( 66 void CompositorFrameSink::ReclaimResources(
64 const cc::ReturnedResourceArray& resources) { 67 const cc::ReturnedResourceArray& resources) {
65 client_->ReclaimResources(resources); 68 client_->ReclaimResources(resources);
66 } 69 }
67 70
68 void CompositorFrameSink::WillDrawSurface() { 71 void CompositorFrameSink::WillDrawSurface() {
69 client_->WillDrawSurface(); 72 client_->WillDrawSurface();
70 } 73 }
71 74
72 } // namespace exo 75 } // namespace exo
OLDNEW
« no previous file with comments | « components/display_compositor/gpu_offscreen_compositor_frame_sink.cc ('k') | components/exo/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698