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

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

Issue 2797453002: Rename DisplayCompositor to MojoFrameSinkManager. (Closed)
Patch Set: Rebase. Created 3 years, 8 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/frame_generator_unittest.cc ('k') | services/ui/ws/gpu_host.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_GPU_HOST_H_ 5 #ifndef SERVICES_UI_WS_GPU_HOST_H_
6 #define SERVICES_UI_WS_GPU_HOST_H_ 6 #define SERVICES_UI_WS_GPU_HOST_H_
7 7
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 26 matching lines...) Expand all
37 class GpuHost : public mojom::GpuHost { 37 class GpuHost : public mojom::GpuHost {
38 public: 38 public:
39 explicit GpuHost(GpuHostDelegate* delegate); 39 explicit GpuHost(GpuHostDelegate* delegate);
40 ~GpuHost() override; 40 ~GpuHost() override;
41 41
42 void Add(mojom::GpuRequest request); 42 void Add(mojom::GpuRequest request);
43 43
44 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget); 44 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget);
45 void OnAcceleratedWidgetDestroyed(gfx::AcceleratedWidget widget); 45 void OnAcceleratedWidgetDestroyed(gfx::AcceleratedWidget widget);
46 46
47 // Requests a cc::mojom::DisplayCompositor interface from mus-gpu. 47 // Requests a cc::mojom::FrameSinkManager interface from mus-gpu.
48 void CreateDisplayCompositor(cc::mojom::DisplayCompositorRequest request, 48 void CreateFrameSinkManager(cc::mojom::FrameSinkManagerRequest request,
49 cc::mojom::DisplayCompositorClientPtr client); 49 cc::mojom::FrameSinkManagerClientPtr client);
50 50
51 private: 51 private:
52 friend class test::GpuHostTest; 52 friend class test::GpuHostTest;
53 53
54 GpuClient* AddInternal(mojom::GpuRequest request); 54 GpuClient* AddInternal(mojom::GpuRequest request);
55 void OnBadMessageFromGpu(); 55 void OnBadMessageFromGpu();
56 56
57 // mojom::GpuHost: 57 // mojom::GpuHost:
58 void DidInitialize(const gpu::GPUInfo& gpu_info, 58 void DidInitialize(const gpu::GPUInfo& gpu_info,
59 const gpu::GpuFeatureInfo& gpu_feature_info) override; 59 const gpu::GpuFeatureInfo& gpu_feature_info) override;
(...skipping 29 matching lines...) Expand all
89 89
90 mojo::StrongBindingSet<mojom::Gpu> gpu_bindings_; 90 mojo::StrongBindingSet<mojom::Gpu> gpu_bindings_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(GpuHost); 92 DISALLOW_COPY_AND_ASSIGN(GpuHost);
93 }; 93 };
94 94
95 } // namespace ws 95 } // namespace ws
96 } // namespace ui 96 } // namespace ui
97 97
98 #endif // SERVICES_UI_WS_GPU_HOST_H_ 98 #endif // SERVICES_UI_WS_GPU_HOST_H_
OLDNEW
« no previous file with comments | « services/ui/ws/frame_generator_unittest.cc ('k') | services/ui/ws/gpu_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698