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

Side by Side Diff: ui/views/mus/surface_context_factory.h

Issue 2187103002: services/ui: Remove unused connector argument (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build errors Created 4 years, 4 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 | « ui/views/mus/surface_binding.cc ('k') | ui/views/mus/surface_context_factory.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 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 UI_VIEWS_MUS_SURFACE_CONTEXT_FACTORY_H_ 5 #ifndef UI_VIEWS_MUS_SURFACE_CONTEXT_FACTORY_H_
6 #define UI_VIEWS_MUS_SURFACE_CONTEXT_FACTORY_H_ 6 #define UI_VIEWS_MUS_SURFACE_CONTEXT_FACTORY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "services/ui/common/mojo_gpu_memory_buffer_manager.h" 11 #include "services/ui/common/mojo_gpu_memory_buffer_manager.h"
12 #include "services/ui/public/cpp/raster_thread_helper.h" 12 #include "services/ui/public/cpp/raster_thread_helper.h"
13 #include "services/ui/public/interfaces/window_tree.mojom.h" 13 #include "services/ui/public/interfaces/window_tree.mojom.h"
14 #include "ui/compositor/compositor.h" 14 #include "ui/compositor/compositor.h"
15 #include "ui/views/mus/mus_export.h" 15 #include "ui/views/mus/mus_export.h"
16 #include "ui/views/mus/surface_binding.h" 16 #include "ui/views/mus/surface_binding.h"
17 17
18 namespace mojo {
19 class Connector;
20 }
21
22 namespace ui { 18 namespace ui {
23 class Window; 19 class Window;
24 } 20 }
25 21
26 namespace views { 22 namespace views {
27 23
28 class VIEWS_MUS_EXPORT SurfaceContextFactory : public ui::ContextFactory { 24 class VIEWS_MUS_EXPORT SurfaceContextFactory : public ui::ContextFactory {
29 public: 25 public:
30 SurfaceContextFactory(shell::Connector* connector, 26 SurfaceContextFactory(ui::Window* window,
31 ui::Window* window,
32 ui::mojom::SurfaceType surface_type); 27 ui::mojom::SurfaceType surface_type);
33 ~SurfaceContextFactory() override; 28 ~SurfaceContextFactory() override;
34 29
35 private: 30 private:
36 // ContextFactory: 31 // ContextFactory:
37 void CreateOutputSurface(base::WeakPtr<ui::Compositor> compositor) override; 32 void CreateOutputSurface(base::WeakPtr<ui::Compositor> compositor) override;
38 std::unique_ptr<ui::Reflector> CreateReflector( 33 std::unique_ptr<ui::Reflector> CreateReflector(
39 ui::Compositor* mirrored_compositor, 34 ui::Compositor* mirrored_compositor,
40 ui::Layer* mirroring_layer) override; 35 ui::Layer* mirroring_layer) override;
41 void RemoveReflector(ui::Reflector* reflector) override; 36 void RemoveReflector(ui::Reflector* reflector) override;
(...skipping 24 matching lines...) Expand all
66 uint32_t next_surface_id_namespace_; 61 uint32_t next_surface_id_namespace_;
67 ui::RasterThreadHelper raster_thread_helper_; 62 ui::RasterThreadHelper raster_thread_helper_;
68 ui::MojoGpuMemoryBufferManager gpu_memory_buffer_manager_; 63 ui::MojoGpuMemoryBufferManager gpu_memory_buffer_manager_;
69 64
70 DISALLOW_COPY_AND_ASSIGN(SurfaceContextFactory); 65 DISALLOW_COPY_AND_ASSIGN(SurfaceContextFactory);
71 }; 66 };
72 67
73 } // namespace views 68 } // namespace views
74 69
75 #endif // UI_VIEWS_MUS_SURFACE_CONTEXT_FACTORY_H_ 70 #endif // UI_VIEWS_MUS_SURFACE_CONTEXT_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/views/mus/surface_binding.cc ('k') | ui/views/mus/surface_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698