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

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

Issue 2710703005: GpuDisplayCompositorFrameSink => GpuRootCompositorFrameSink (Closed)
Patch Set: Addressed Dana's comments 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
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 SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ 5 #ifndef SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_
6 #define SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ 6 #define SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/ipc/compositor_frame.mojom.h" 9 #include "cc/ipc/compositor_frame.mojom.h"
10 #include "cc/ipc/display_compositor.mojom.h" 10 #include "cc/ipc/display_compositor.mojom.h"
(...skipping 24 matching lines...) Expand all
35 35
36 // ServerWindowCompositorFrameSinkManager tracks the surfaces associated with a 36 // ServerWindowCompositorFrameSinkManager tracks the surfaces associated with a
37 // ServerWindow. 37 // ServerWindow.
38 class ServerWindowCompositorFrameSinkManager { 38 class ServerWindowCompositorFrameSinkManager {
39 public: 39 public:
40 explicit ServerWindowCompositorFrameSinkManager(ServerWindow* window); 40 explicit ServerWindowCompositorFrameSinkManager(ServerWindow* window);
41 ~ServerWindowCompositorFrameSinkManager(); 41 ~ServerWindowCompositorFrameSinkManager();
42 42
43 // Creates a new CompositorFrameSink of the specified type, replacing the 43 // Creates a new CompositorFrameSink of the specified type, replacing the
44 // existing one of the specified type. 44 // existing one of the specified type.
45 void CreateDisplayCompositorFrameSink( 45 void CreateRootCompositorFrameSink(
46 gfx::AcceleratedWidget widget, 46 gfx::AcceleratedWidget widget,
47 cc::mojom::MojoCompositorFrameSinkAssociatedRequest sink_request, 47 cc::mojom::MojoCompositorFrameSinkAssociatedRequest sink_request,
48 cc::mojom::MojoCompositorFrameSinkClientPtr client, 48 cc::mojom::MojoCompositorFrameSinkClientPtr client,
49 cc::mojom::DisplayPrivateAssociatedRequest display_request); 49 cc::mojom::DisplayPrivateAssociatedRequest display_request);
50 50
51 void CreateOffscreenCompositorFrameSink( 51 void CreateCompositorFrameSink(
52 cc::mojom::MojoCompositorFrameSinkRequest request, 52 cc::mojom::MojoCompositorFrameSinkRequest request,
53 cc::mojom::MojoCompositorFrameSinkClientPtr client); 53 cc::mojom::MojoCompositorFrameSinkClientPtr client);
54 54
55 // Adds the provided |frame_sink_id| to this ServerWindow's associated 55 // Adds the provided |frame_sink_id| to this ServerWindow's associated
56 // CompositorFrameSink if possible. If this ServerWindow does not have 56 // CompositorFrameSink if possible. If this ServerWindow does not have
57 // an associated CompositorFrameSink then this method will recursively 57 // an associated CompositorFrameSink then this method will recursively
58 // walk up the window hierarchy and register itself with the first ancestor 58 // walk up the window hierarchy and register itself with the first ancestor
59 // that has a CompositorFrameSink of the same type. This method returns 59 // that has a CompositorFrameSink of the same type. This method returns
60 // the FrameSinkId that is the first composited ancestor of the ServerWindow 60 // the FrameSinkId that is the first composited ancestor of the ServerWindow
61 // assocaited with the provided |frame_sink_id|. 61 // assocaited with the provided |frame_sink_id|.
(...skipping 10 matching lines...) Expand all
72 72
73 std::unique_ptr<CompositorFrameSinkData> frame_sink_data_; 73 std::unique_ptr<CompositorFrameSinkData> frame_sink_data_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(ServerWindowCompositorFrameSinkManager); 75 DISALLOW_COPY_AND_ASSIGN(ServerWindowCompositorFrameSinkManager);
76 }; 76 };
77 77
78 } // namespace ws 78 } // namespace ws
79 } // namespace ui 79 } // namespace ui
80 80
81 #endif // SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_ 81 #endif // SERVICES_UI_WS_SERVER_WINDOW_COMPOSITOR_FRAME_SINK_MANAGER_H_
OLDNEW
« no previous file with comments | « services/ui/ws/server_window.cc ('k') | services/ui/ws/server_window_compositor_frame_sink_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698