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

Side by Side Diff: components/display_compositor/gpu_compositor_frame_sink.h

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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ 6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "cc/ipc/display_compositor.mojom.h" 13 #include "cc/ipc/display_compositor.mojom.h"
14 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" 14 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h"
15 #include "cc/surfaces/compositor_frame_sink_support.h" 15 #include "cc/surfaces/compositor_frame_sink_support.h"
16 #include "cc/surfaces/compositor_frame_sink_support_client.h" 16 #include "cc/surfaces/compositor_frame_sink_support_client.h"
17 #include "components/display_compositor/display_compositor_export.h" 17 #include "components/display_compositor/display_compositor_export.h"
18 #include "components/display_compositor/gpu_compositor_frame_sink_delegate.h" 18 #include "components/display_compositor/gpu_compositor_frame_sink_delegate.h"
19 #include "mojo/public/cpp/bindings/binding.h" 19 #include "mojo/public/cpp/bindings/binding.h"
20 20
21 namespace cc {
22 class Display;
23 }
24
25 namespace display_compositor { 21 namespace display_compositor {
26 22
27 // Server side representation of a WindowSurface. 23 // Server side representation of a WindowSurface.
28 class DISPLAY_COMPOSITOR_EXPORT GpuCompositorFrameSink 24 class DISPLAY_COMPOSITOR_EXPORT GpuCompositorFrameSink
29 : public NON_EXPORTED_BASE(cc::CompositorFrameSinkSupportClient), 25 : public NON_EXPORTED_BASE(cc::CompositorFrameSinkSupportClient),
30 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSink), 26 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSink),
31 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSinkPrivate) { 27 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSinkPrivate) {
32 public: 28 public:
33 GpuCompositorFrameSink( 29 GpuCompositorFrameSink(
34 GpuCompositorFrameSinkDelegate* delegate, 30 GpuCompositorFrameSinkDelegate* delegate,
35 cc::SurfaceManager* surface_manager, 31 cc::SurfaceManager* surface_manager,
36 const cc::FrameSinkId& frame_sink_id, 32 const cc::FrameSinkId& frame_sink_id,
37 cc::Display* display,
38 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, 33 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
39 cc::mojom::MojoCompositorFrameSinkClientPtr client); 34 cc::mojom::MojoCompositorFrameSinkClientPtr client,
35 bool has_display);
40 36
41 ~GpuCompositorFrameSink() override; 37 ~GpuCompositorFrameSink() override;
42 38
43 // cc::mojom::MojoCompositorFrameSink: 39 // cc::mojom::MojoCompositorFrameSink:
44 void EvictFrame() override; 40 void EvictFrame() override;
45 void SetNeedsBeginFrame(bool needs_begin_frame) override; 41 void SetNeedsBeginFrame(bool needs_begin_frame) override;
46 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, 42 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
47 cc::CompositorFrame frame) override; 43 cc::CompositorFrame frame) override;
48 void Require(const cc::LocalSurfaceId& local_surface_id, 44 void Require(const cc::LocalSurfaceId& local_surface_id,
49 const cc::SurfaceSequence& sequence) override; 45 const cc::SurfaceSequence& sequence) override;
(...skipping 26 matching lines...) Expand all
76 cc::mojom::MojoCompositorFrameSinkClientPtr client_; 72 cc::mojom::MojoCompositorFrameSinkClientPtr client_;
77 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> 73 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate>
78 compositor_frame_sink_private_binding_; 74 compositor_frame_sink_private_binding_;
79 75
80 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); 76 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink);
81 }; 77 };
82 78
83 } // namespace display_compositor 79 } // namespace display_compositor
84 80
85 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ 81 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698