OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_GPU_GPU_CHILD_THREAD_H_ | 5 #ifndef CONTENT_GPU_GPU_CHILD_THREAD_H_ |
6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ | 6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
65 | 65 |
66 GpuChildThread(const InProcessChildThreadParams& params, | 66 GpuChildThread(const InProcessChildThreadParams& params, |
67 const gpu::GPUInfo& gpu_info, | 67 const gpu::GPUInfo& gpu_info, |
68 const gpu::GpuFeatureInfo& gpu_feature_info); | 68 const gpu::GpuFeatureInfo& gpu_feature_info); |
69 | 69 |
70 ~GpuChildThread() override; | 70 ~GpuChildThread() override; |
71 | 71 |
72 void Init(const base::Time& process_start_time); | 72 void Init(const base::Time& process_start_time); |
73 | 73 |
74 private: | 74 private: |
75 class QueueingConnectionFilter; | |
Ken Rockot(use gerrit already)
2017/04/20 17:41:44
Does this really need to be a nested class declara
| |
76 | |
75 GpuChildThread(const ChildThreadImpl::Options& options, | 77 GpuChildThread(const ChildThreadImpl::Options& options, |
76 std::unique_ptr<gpu::GpuWatchdogThread> gpu_watchdog_thread, | 78 std::unique_ptr<gpu::GpuWatchdogThread> gpu_watchdog_thread, |
77 bool dead_on_arrival, | 79 bool dead_on_arrival, |
78 bool in_browser_process, | 80 bool in_browser_process, |
79 const gpu::GPUInfo& gpu_info, | 81 const gpu::GPUInfo& gpu_info, |
80 const gpu::GpuFeatureInfo& gpu_feature_info); | 82 const gpu::GpuFeatureInfo& gpu_feature_info); |
81 | 83 |
82 void CreateGpuMainService(ui::mojom::GpuMainAssociatedRequest request); | 84 void CreateGpuMainService(ui::mojom::GpuMainAssociatedRequest request); |
83 | 85 |
84 // ChildThreadImpl:. | 86 // ChildThreadImpl:. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
123 std::unique_ptr<GpuServiceFactory> service_factory_; | 125 std::unique_ptr<GpuServiceFactory> service_factory_; |
124 | 126 |
125 // Bindings to the service_manager::mojom::ServiceFactory impl. | 127 // Bindings to the service_manager::mojom::ServiceFactory impl. |
126 mojo::BindingSet<service_manager::mojom::ServiceFactory> | 128 mojo::BindingSet<service_manager::mojom::ServiceFactory> |
127 service_factory_bindings_; | 129 service_factory_bindings_; |
128 | 130 |
129 AssociatedInterfaceRegistryImpl associated_interfaces_; | 131 AssociatedInterfaceRegistryImpl associated_interfaces_; |
130 std::unique_ptr<ui::GpuService> gpu_service_; | 132 std::unique_ptr<ui::GpuService> gpu_service_; |
131 mojo::AssociatedBinding<ui::mojom::GpuMain> gpu_main_binding_; | 133 mojo::AssociatedBinding<ui::mojom::GpuMain> gpu_main_binding_; |
132 | 134 |
135 // Holds a closure that releases pending interface requests on the IO thread. | |
136 base::Closure release_closure_; | |
137 | |
133 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 138 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
134 }; | 139 }; |
135 | 140 |
136 } // namespace content | 141 } // namespace content |
137 | 142 |
138 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 143 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
OLD | NEW |