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

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

Issue 237903002: Clean up mac gpu switching code a little. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix linux test Created 6 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 | « no previous file | content/browser/gpu/gpu_data_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_data_manager_impl.h
diff --git a/content/browser/gpu/gpu_data_manager_impl.h b/content/browser/gpu/gpu_data_manager_impl.h
index e3e92afca9bf1c311ba6a05108a04907619a551b..5a783e46c75c38d25a968b6c5d8fc2dea1e35257 100644
--- a/content/browser/gpu/gpu_data_manager_impl.h
+++ b/content/browser/gpu/gpu_data_manager_impl.h
@@ -166,6 +166,10 @@ class CONTENT_EXPORT GpuDataManagerImpl
void SetDisplayCount(unsigned int display_count);
unsigned int GetDisplayCount() const;
+ // Set the active gpu.
+ // Return true if it's a different GPU from the previous active one.
+ bool UpdateActiveGpu(uint32 vendor_id, uint32 device_id);
+
// Called when GPU process initialization failed.
void OnGpuProcessInitFailure();
« no previous file with comments | « no previous file | content/browser/gpu/gpu_data_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698