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

Unified Diff: content/gpu/gpu_child_thread.h

Issue 1753383003: Get rid of gpu related switches by passing gpu::GpuPreferences via IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 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
Index: content/gpu/gpu_child_thread.h
diff --git a/content/gpu/gpu_child_thread.h b/content/gpu/gpu_child_thread.h
index b9aa2b2355a317184dcb95d5cca810483ad2e126..78c10157878200ffed1ef2b1647ad80099cb5431 100644
--- a/content/gpu/gpu_child_thread.h
+++ b/content/gpu/gpu_child_thread.h
@@ -70,8 +70,6 @@ class GpuChildThread : public ChildThreadImpl,
void Init(const base::Time& process_start_time);
void StopWatchdog();
- static gpu::GpuPreferences GetGpuPreferencesFromCommandLine();
-
private:
// ChildThread overrides.
bool Send(IPC::Message* msg) override;
@@ -102,7 +100,7 @@ class GpuChildThread : public ChildThreadImpl,
const std::string& shader) override;
// Message handlers.
- void OnInitialize();
+ void OnInitialize(const gpu::GpuPreferences& gpu_preferences);
void OnFinalize();
void OnCollectGraphicsInfo();
void OnGetVideoMemoryUsageStats();

Powered by Google App Engine
This is Rietveld 408576698