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

Side by Side Diff: services/ui/ws/display_client_compositor_frame_sink.h

Issue 2755573002: Add FrameGenerator Unit Tests (Closed)
Patch Set: Removed TestCompositorFrameSink due to name conflict Created 3 years, 9 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
« no previous file with comments | « services/ui/ws/BUILD.gn ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 SERVICES_UI_PUBLIC_CPP_DISPLAY_CLIENT_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_DISPLAY_CLIENT_COMPOSITOR_FRAME_SINK_H_
6 #define SERVICES_UI_PUBLIC_CPP_DISPLAY_CLIENT_COMPOSITOR_FRAME_SINK_H_ 6 #define SERVICES_UI_PUBLIC_CPP_DISPLAY_CLIENT_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include "cc/ipc/display_compositor.mojom.h" 8 #include "cc/ipc/display_compositor.mojom.h"
9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" 9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h"
10 #include "cc/output/compositor_frame_sink.h" 10 #include "cc/output/compositor_frame_sink.h"
11 #include "cc/scheduler/begin_frame_source.h" 11 #include "cc/scheduler/begin_frame_source.h"
12 #include "cc/surfaces/local_surface_id.h" 12 #include "cc/surfaces/local_surface_id.h"
13 #include "cc/surfaces/local_surface_id_allocator.h" 13 #include "cc/surfaces/local_surface_id_allocator.h"
14 #include "mojo/public/cpp/bindings/binding.h" 14 #include "mojo/public/cpp/bindings/binding.h"
15 #include "ui/gfx/geometry/size.h" 15 #include "ui/gfx/geometry/size.h"
16 16
17 namespace base { 17 namespace base {
18 class ThreadChecker; 18 class ThreadChecker;
19 } // namespace base 19 } // namespace base
20 20
21 namespace ui { 21 namespace ui {
22 namespace ws { 22 namespace ws {
23 23
24 // DisplayClientCompositorFrameSink submits CompositorFrames to a
25 // MojoCompositorFrameSink, with the client's frame being the root surface of
26 // the Display.
24 class DisplayClientCompositorFrameSink 27 class DisplayClientCompositorFrameSink
25 : public cc::CompositorFrameSink, 28 : public cc::CompositorFrameSink,
26 public cc::mojom::MojoCompositorFrameSinkClient, 29 public cc::mojom::MojoCompositorFrameSinkClient,
27 public cc::ExternalBeginFrameSourceClient { 30 public cc::ExternalBeginFrameSourceClient {
28 public: 31 public:
29 DisplayClientCompositorFrameSink( 32 DisplayClientCompositorFrameSink(
30 const cc::FrameSinkId& frame_sink_id, 33 const cc::FrameSinkId& frame_sink_id,
31 cc::mojom::MojoCompositorFrameSinkAssociatedPtr compositor_frame_sink, 34 cc::mojom::MojoCompositorFrameSinkAssociatedPtr compositor_frame_sink,
32 cc::mojom::DisplayPrivateAssociatedPtr display_private, 35 cc::mojom::DisplayPrivateAssociatedPtr display_private,
33 cc::mojom::MojoCompositorFrameSinkClientRequest client_request); 36 cc::mojom::MojoCompositorFrameSinkClientRequest client_request);
(...skipping 28 matching lines...) Expand all
62 std::unique_ptr<cc::ExternalBeginFrameSource> begin_frame_source_; 65 std::unique_ptr<cc::ExternalBeginFrameSource> begin_frame_source_;
63 const cc::FrameSinkId frame_sink_id_; 66 const cc::FrameSinkId frame_sink_id_;
64 67
65 DISALLOW_COPY_AND_ASSIGN(DisplayClientCompositorFrameSink); 68 DISALLOW_COPY_AND_ASSIGN(DisplayClientCompositorFrameSink);
66 }; 69 };
67 70
68 } // namspace ws 71 } // namspace ws
69 } // namespace ui 72 } // namespace ui
70 73
71 #endif // SERVICES_UI_PUBLIC_CPP_DISPLAY_CLIENT_COMPOSITOR_FRAME_SINK_H_ 74 #endif // SERVICES_UI_PUBLIC_CPP_DISPLAY_CLIENT_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« no previous file with comments | « services/ui/ws/BUILD.gn ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698