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

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

Issue 2717233003: gpu: Use mojom API for getting video memory usage. (Closed)
Patch Set: . Created 3 years, 10 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 5d52b91ba33b02488e050e7a2600918a9b344db3..101b8d4ed85cdf8261002710c0b65ce460c30c51 100644
--- a/content/browser/gpu/gpu_process_host.h
+++ b/content/browser/gpu/gpu_process_host.h
@@ -100,6 +100,13 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
bool force_create,
IPC::Message* message);
+ // Helper function to run a callback on the IO thread. The callback receives
+ // the appropriate GpuProcessHost instance. If |force_create| is false, and no
+ // GpuProcessHost instance exists, then the callback is never called.
+ static void CallOnIO(GpuProcessKind kind,
+ bool force_create,
+ const base::Callback<void(GpuProcessHost*)>& callback);
+
service_manager::InterfaceProvider* GetRemoteInterfaces();
// Get the GPU process host for the GPU process with the given ID. Returns
@@ -154,6 +161,8 @@ class GpuProcessHost : public BrowserChildProcessHostDelegate,
void LoadedShader(const std::string& key, const std::string& data);
+ ui::mojom::GpuService* gpu_service() { return gpu_service_ptr_.get(); }
+
private:
class ConnectionFilterImpl;
« 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