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

Side by Side Diff: content/browser/gpu/gpu_process_host.h

Issue 2753293003: gpu: Replace GpuMsg_CollectGraphicsInfo with mojom API. (Closed)
Patch Set: tot merge Created 3 years, 9 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_BROWSER_GPU_GPU_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 #endif 154 #endif
155 155
156 // What kind of GPU process, e.g. sandboxed or unsandboxed. 156 // What kind of GPU process, e.g. sandboxed or unsandboxed.
157 GpuProcessKind kind(); 157 GpuProcessKind kind();
158 158
159 // Forcefully terminates the GPU process. 159 // Forcefully terminates the GPU process.
160 void ForceShutdown(); 160 void ForceShutdown();
161 161
162 void LoadedShader(const std::string& key, const std::string& data); 162 void LoadedShader(const std::string& key, const std::string& data);
163 163
164 ui::mojom::GpuService* gpu_service() { return gpu_service_ptr_.get(); } 164 CONTENT_EXPORT ui::mojom::GpuService* gpu_service();
165 165
166 private: 166 private:
167 class ConnectionFilterImpl; 167 class ConnectionFilterImpl;
168 168
169 static bool ValidateHost(GpuProcessHost* host); 169 static bool ValidateHost(GpuProcessHost* host);
170 170
171 GpuProcessHost(int host_id, GpuProcessKind kind); 171 GpuProcessHost(int host_id, GpuProcessKind kind);
172 ~GpuProcessHost() override; 172 ~GpuProcessHost() override;
173 173
174 bool Init(); 174 bool Init();
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 gpu::GpuProcessHostActivityFlags activity_flags_; 301 gpu::GpuProcessHostActivityFlags activity_flags_;
302 302
303 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_; 303 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_;
304 304
305 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 305 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
306 }; 306 };
307 307
308 } // namespace content 308 } // namespace content
309 309
310 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 310 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698