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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 void OnDestroyingVideoSurface(int surface_id); | 128 void OnDestroyingVideoSurface(int surface_id); |
129 #endif | 129 #endif |
130 void OnLoseAllContexts(); | 130 void OnLoseAllContexts(); |
131 | 131 |
132 void BindServiceFactoryRequest(shell::mojom::ServiceFactoryRequest request); | 132 void BindServiceFactoryRequest(shell::mojom::ServiceFactoryRequest request); |
133 | 133 |
134 gpu::GpuPreferences gpu_preferences_; | 134 gpu::GpuPreferences gpu_preferences_; |
135 | 135 |
136 // Set this flag to true if a fatal error occurred before we receive the | 136 // Set this flag to true if a fatal error occurred before we receive the |
137 // OnInitialize message, in which case we just declare ourselves DOA. | 137 // OnInitialize message, in which case we just declare ourselves DOA. |
138 bool dead_on_arrival_; | 138 const bool dead_on_arrival_; |
139 base::Time process_start_time_; | 139 base::Time process_start_time_; |
140 scoped_refptr<gpu::GpuWatchdogThread> watchdog_thread_; | 140 scoped_refptr<gpu::GpuWatchdogThread> watchdog_thread_; |
141 | 141 |
142 #if defined(OS_WIN) | 142 #if defined(OS_WIN) |
143 // Windows specific client sandbox interface. | 143 // Windows specific client sandbox interface. |
144 sandbox::TargetServices* target_services_; | 144 sandbox::TargetServices* target_services_; |
145 #endif | 145 #endif |
146 | 146 |
147 // Can be null if overridden by ContentGpuClient. | 147 // Can be null if overridden by ContentGpuClient. |
148 std::unique_ptr<gpu::SyncPointManager> owned_sync_point_manager_; | 148 std::unique_ptr<gpu::SyncPointManager> owned_sync_point_manager_; |
(...skipping 19 matching lines...) Expand all Loading... |
168 | 168 |
169 // Bindings to the shell::mojom::ServiceFactory impl. | 169 // Bindings to the shell::mojom::ServiceFactory impl. |
170 mojo::BindingSet<shell::mojom::ServiceFactory> service_factory_bindings_; | 170 mojo::BindingSet<shell::mojom::ServiceFactory> service_factory_bindings_; |
171 | 171 |
172 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 172 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
173 }; | 173 }; |
174 | 174 |
175 } // namespace content | 175 } // namespace content |
176 | 176 |
177 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 177 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
OLD | NEW |