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

Side by Side Diff: content/gpu/gpu_child_thread.h

Issue 2322123002: gpu: Introduce GpuInit. (Closed)
Patch Set: . Created 4 years, 3 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 | « content/browser/gpu/gpu_process_host.cc ('k') | content/gpu/gpu_main.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 (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
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
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_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/gpu/gpu_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698