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

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

Issue 2681003005: Revert of DirectCompositorFrameSink Uses CompositorFrameSinkSupport (Closed)
Patch Set: 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_DISPLAY_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_ 6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include "components/display_compositor/gpu_compositor_frame_sink.h" 8 #include "components/display_compositor/gpu_compositor_frame_sink.h"
9 #include "components/display_compositor/gpu_compositor_frame_sink_delegate.h" 9 #include "components/display_compositor/gpu_compositor_frame_sink_delegate.h"
10 #include "mojo/public/cpp/bindings/associated_binding.h" 10 #include "mojo/public/cpp/bindings/associated_binding.h"
(...skipping 20 matching lines...) Expand all
31 // cc::mojom::DisplayPrivate: 31 // cc::mojom::DisplayPrivate:
32 void SetDisplayVisible(bool visible) override; 32 void SetDisplayVisible(bool visible) override;
33 void ResizeDisplay(const gfx::Size& size) override; 33 void ResizeDisplay(const gfx::Size& size) override;
34 void SetDisplayColorSpace(const gfx::ColorSpace& color_space) override; 34 void SetDisplayColorSpace(const gfx::ColorSpace& color_space) override;
35 void SetOutputIsSecure(bool secure) override; 35 void SetOutputIsSecure(bool secure) override;
36 36
37 private: 37 private:
38 mojo::AssociatedBinding<cc::mojom::MojoCompositorFrameSink> binding_; 38 mojo::AssociatedBinding<cc::mojom::MojoCompositorFrameSink> binding_;
39 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_; 39 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_;
40 40
41 // GpuCompositorFrameSink holds a Display and its BeginFrameSource. In the
42 // window server, the display root window's CompositorFrameSink will have a
43 // valid gpu::SurfaceHandle.
44 std::unique_ptr<cc::BeginFrameSource> display_begin_frame_source_;
45 std::unique_ptr<cc::Display> display_;
46
47 DISALLOW_COPY_AND_ASSIGN(GpuDisplayCompositorFrameSink); 41 DISALLOW_COPY_AND_ASSIGN(GpuDisplayCompositorFrameSink);
48 }; 42 };
49 43
50 } // namespace display_compositor 44 } // namespace display_compositor
51 45
52 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_ 46 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698