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

Side by Side Diff: services/ui/public/cpp/window.h

Issue 2452483002: Move GpuMemoryBufferManager and SharedBitmapManager to CompositorFrameSink (Closed)
Patch Set: rebase Created 4 years, 1 month 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/demo/bitmap_uploader.cc ('k') | services/ui/public/cpp/window.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 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_PUBLIC_CPP_WINDOW_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_H_
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_ 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "mojo/public/cpp/bindings/array.h" 14 #include "mojo/public/cpp/bindings/array.h"
15 #include "services/service_manager/public/interfaces/interface_provider.mojom.h" 15 #include "services/service_manager/public/interfaces/interface_provider.mojom.h"
16 #include "services/ui/common/types.h" 16 #include "services/ui/common/types.h"
17 #include "services/ui/public/cpp/surface_id_handler.h" 17 #include "services/ui/public/cpp/surface_id_handler.h"
18 #include "services/ui/public/cpp/window_compositor_frame_sink.h" 18 #include "services/ui/public/cpp/window_compositor_frame_sink.h"
19 #include "services/ui/public/interfaces/mus_constants.mojom.h" 19 #include "services/ui/public/interfaces/mus_constants.mojom.h"
20 #include "services/ui/public/interfaces/window_tree.mojom.h" 20 #include "services/ui/public/interfaces/window_tree.mojom.h"
21 #include "ui/gfx/geometry/insets.h" 21 #include "ui/gfx/geometry/insets.h"
22 #include "ui/gfx/geometry/rect.h" 22 #include "ui/gfx/geometry/rect.h"
23 23
24 namespace gfx { 24 namespace gfx {
25 class Size; 25 class Size;
26 } 26 }
27 27
28 namespace gpu {
29 class GpuMemoryBufferManager;
30 }
31
28 namespace ui { 32 namespace ui {
29 33
30 class InputEventHandler; 34 class InputEventHandler;
31 class ServiceProviderImpl; 35 class ServiceProviderImpl;
32 class SurfaceIdHandler; 36 class SurfaceIdHandler;
33 class WindowCompositorFrameSinkBinding; 37 class WindowCompositorFrameSinkBinding;
34 class WindowObserver; 38 class WindowObserver;
35 class WindowSurface; 39 class WindowSurface;
36 class WindowDropTarget; 40 class WindowDropTarget;
37 class WindowTreeClient; 41 class WindowTreeClient;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // Cursors 114 // Cursors
111 mojom::Cursor predefined_cursor() const { return cursor_id_; } 115 mojom::Cursor predefined_cursor() const { return cursor_id_; }
112 void SetPredefinedCursor(ui::mojom::Cursor cursor_id); 116 void SetPredefinedCursor(ui::mojom::Cursor cursor_id);
113 117
114 // A Window is drawn if the Window and all its ancestors are visible and the 118 // A Window is drawn if the Window and all its ancestors are visible and the
115 // Window is attached to the root. 119 // Window is attached to the root.
116 bool IsDrawn() const; 120 bool IsDrawn() const;
117 121
118 std::unique_ptr<WindowCompositorFrameSink> RequestCompositorFrameSink( 122 std::unique_ptr<WindowCompositorFrameSink> RequestCompositorFrameSink(
119 mojom::CompositorFrameSinkType type, 123 mojom::CompositorFrameSinkType type,
120 scoped_refptr<cc::ContextProvider> context_provider); 124 scoped_refptr<cc::ContextProvider> context_provider,
125 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager);
121 126
122 void AttachCompositorFrameSink( 127 void AttachCompositorFrameSink(
123 mojom::CompositorFrameSinkType type, 128 mojom::CompositorFrameSinkType type,
124 std::unique_ptr<WindowCompositorFrameSinkBinding> 129 std::unique_ptr<WindowCompositorFrameSinkBinding>
125 compositor_frame_sink_binding); 130 compositor_frame_sink_binding);
126 131
127 // The template-ized versions of the following methods rely on the presence 132 // The template-ized versions of the following methods rely on the presence
128 // of a mojo::TypeConverter<const std::vector<uint8_t>, T>. 133 // of a mojo::TypeConverter<const std::vector<uint8_t>, T>.
129 // Sets a shared property on the window which is sent to the window server and 134 // Sets a shared property on the window which is sent to the window server and
130 // shared with other clients that can view this window. 135 // shared with other clients that can view this window.
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 std::map<const void*, Value> prop_map_; 412 std::map<const void*, Value> prop_map_;
408 413
409 std::unique_ptr<SurfaceInfo> surface_info_; 414 std::unique_ptr<SurfaceInfo> surface_info_;
410 415
411 DISALLOW_COPY_AND_ASSIGN(Window); 416 DISALLOW_COPY_AND_ASSIGN(Window);
412 }; 417 };
413 418
414 } // namespace ui 419 } // namespace ui
415 420
416 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_ 421 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_
OLDNEW
« no previous file with comments | « services/ui/demo/bitmap_uploader.cc ('k') | services/ui/public/cpp/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698