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

Unified Diff: content/browser/gpu/gpu_process_host.h

Issue 2810593003: gpu: Some cleanups. (Closed)
Patch Set: . Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_process_host.h
diff --git a/content/browser/gpu/gpu_process_host.h b/content/browser/gpu/gpu_process_host.h
index 749d63be6bd802a0a452110acbf351b5f962eb19..cb0ca81c7bb7ac886c7d1b8241d930e577587b87 100644
--- a/content/browser/gpu/gpu_process_host.h
+++ b/content/browser/gpu/gpu_process_host.h
@@ -91,12 +91,12 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
// has returned to the message loop as it can be destroyed. Instead store the
// associated GPU host ID. This could return NULL if GPU access is not
// allowed (blacklisted).
- CONTENT_EXPORT static GpuProcessHost* Get(GpuProcessKind kind,
- bool force_create = true);
+ CONTENT_EXPORT static GpuProcessHost* Get(
+ GpuProcessKind kind = GPU_PROCESS_KIND_SANDBOXED,
+ bool force_create = true);
- // Retrieves a list of process handles for all gpu processes.
- static void GetProcessHandles(
- const GpuDataManager::GetGpuProcessHandlesCallback& callback);
+ // Returns whether there is an active GPU process or not.
+ static void GetHasGpuProcess(const base::Callback<void(bool)>& callback);
// Helper function to run a callback on the IO thread. The callback receives
// the appropriate GpuProcessHost instance. Note that the callback can be
« 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