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

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

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 void OnLoadedShader(const std::string& shader); 120 void OnLoadedShader(const std::string& shader);
121 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, 121 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
122 int client_id, 122 int client_id,
123 const gpu::SyncToken& sync_token); 123 const gpu::SyncToken& sync_token);
124 #if defined(OS_ANDROID) 124 #if defined(OS_ANDROID)
125 void OnWakeUpGpu(); 125 void OnWakeUpGpu();
126 void OnDestroyingVideoSurface(int surface_id); 126 void OnDestroyingVideoSurface(int surface_id);
127 #endif 127 #endif
128 void OnLoseAllContexts(); 128 void OnLoseAllContexts();
129 129
130 void BindServiceFactoryRequest(shell::mojom::ServiceFactoryRequest request); 130 void BindServiceFactoryRequest(
131 service_manager::mojom::ServiceFactoryRequest request);
131 132
132 // Set this flag to true if a fatal error occurred before we receive the 133 // Set this flag to true if a fatal error occurred before we receive the
133 // OnInitialize message, in which case we just declare ourselves DOA. 134 // OnInitialize message, in which case we just declare ourselves DOA.
134 const bool dead_on_arrival_; 135 const bool dead_on_arrival_;
135 base::Time process_start_time_; 136 base::Time process_start_time_;
136 std::unique_ptr<gpu::GpuWatchdogThread> watchdog_thread_; 137 std::unique_ptr<gpu::GpuWatchdogThread> watchdog_thread_;
137 138
138 #if defined(OS_WIN) 139 #if defined(OS_WIN)
139 // Windows specific client sandbox interface. 140 // Windows specific client sandbox interface.
140 sandbox::TargetServices* target_services_; 141 sandbox::TargetServices* target_services_;
(...skipping 11 matching lines...) Expand all
152 153
153 // Error messages collected in gpu_main() before the thread is created. 154 // Error messages collected in gpu_main() before the thread is created.
154 DeferredMessages deferred_messages_; 155 DeferredMessages deferred_messages_;
155 156
156 // Whether the GPU thread is running in the browser process. 157 // Whether the GPU thread is running in the browser process.
157 bool in_browser_process_; 158 bool in_browser_process_;
158 159
159 // The gpu::GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers. 160 // The gpu::GpuMemoryBufferFactory instance used to allocate GpuMemoryBuffers.
160 gpu::GpuMemoryBufferFactory* const gpu_memory_buffer_factory_; 161 gpu::GpuMemoryBufferFactory* const gpu_memory_buffer_factory_;
161 162
162 // ServiceFactory for shell::Service hosting. 163 // ServiceFactory for service_manager::Service hosting.
163 std::unique_ptr<GpuServiceFactory> service_factory_; 164 std::unique_ptr<GpuServiceFactory> service_factory_;
164 165
165 // Bindings to the shell::mojom::ServiceFactory impl. 166 // Bindings to the service_manager::mojom::ServiceFactory impl.
166 mojo::BindingSet<shell::mojom::ServiceFactory> service_factory_bindings_; 167 mojo::BindingSet<service_manager::mojom::ServiceFactory>
168 service_factory_bindings_;
167 169
168 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); 170 DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
169 }; 171 };
170 172
171 } // namespace content 173 } // namespace content
172 174
173 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ 175 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « content/common/service_worker/embedded_worker_setup.mojom ('k') | content/gpu/gpu_child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698