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

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

Issue 2576723002: Split cc::mojom::DisplayCompositor::CreateCompositorFrameSink() into CreateDisplayCompositorFrameSi… (Closed)
Patch Set: Removed commented out code Created 4 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_H_ 5 #ifndef SERVICES_UI_WS_SERVER_WINDOW_H_
6 #define SERVICES_UI_WS_SERVER_WINDOW_H_ 6 #define SERVICES_UI_WS_SERVER_WINDOW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void AddObserver(ServerWindowObserver* observer); 55 void AddObserver(ServerWindowObserver* observer);
56 void RemoveObserver(ServerWindowObserver* observer); 56 void RemoveObserver(ServerWindowObserver* observer);
57 bool HasObserver(ServerWindowObserver* observer); 57 bool HasObserver(ServerWindowObserver* observer);
58 58
59 // Creates a new CompositorFrameSink of the specified type, replacing the 59 // Creates a new CompositorFrameSink of the specified type, replacing the
60 // existing. 60 // existing.
61 // TODO(fsamuel): We should not be passing in |gpu_memory_buffer_manager| and 61 // TODO(fsamuel): We should not be passing in |gpu_memory_buffer_manager| and
62 // |context_provider|. The window server should not know anything about them. 62 // |context_provider|. The window server should not know anything about them.
63 // Instead, they should be a CompositorFrameSink service-side implementation 63 // Instead, they should be a CompositorFrameSink service-side implementation
64 // detail. 64 // detail.
65 void CreateCompositorFrameSink( 65 void CreateDisplayCompositorFrameSink(
66 mojom::CompositorFrameSinkType compositor_frame_sink_type, 66 mojom::CompositorFrameSinkType compositor_frame_sink_type,
67 gfx::AcceleratedWidget widget, 67 gfx::AcceleratedWidget widget,
68 cc::mojom::MojoCompositorFrameSinkRequest request, 68 cc::mojom::MojoCompositorFrameSinkRequest request,
69 cc::mojom::MojoCompositorFrameSinkClientPtr client); 69 cc::mojom::MojoCompositorFrameSinkClientPtr client);
70 void CreateOffscreenCompositorFrameSink(
71 mojom::CompositorFrameSinkType compositor_frame_sink_type,
72 cc::mojom::MojoCompositorFrameSinkRequest request,
73 cc::mojom::MojoCompositorFrameSinkClientPtr client);
70 74
71 const WindowId& id() const { return id_; } 75 const WindowId& id() const { return id_; }
72 76
73 void Add(ServerWindow* child); 77 void Add(ServerWindow* child);
74 void Remove(ServerWindow* child); 78 void Remove(ServerWindow* child);
75 void Reorder(ServerWindow* relative, mojom::OrderDirection diretion); 79 void Reorder(ServerWindow* relative, mojom::OrderDirection diretion);
76 void StackChildAtBottom(ServerWindow* child); 80 void StackChildAtBottom(ServerWindow* child);
77 void StackChildAtTop(ServerWindow* child); 81 void StackChildAtTop(ServerWindow* child);
78 82
79 const gfx::Rect& bounds() const { return bounds_; } 83 const gfx::Rect& bounds() const { return bounds_; }
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 263
260 base::ObserverList<ServerWindowObserver> observers_; 264 base::ObserverList<ServerWindowObserver> observers_;
261 265
262 DISALLOW_COPY_AND_ASSIGN(ServerWindow); 266 DISALLOW_COPY_AND_ASSIGN(ServerWindow);
263 }; 267 };
264 268
265 } // namespace ws 269 } // namespace ws
266 } // namespace ui 270 } // namespace ui
267 271
268 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_ 272 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698