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

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

Issue 1885023002: Set GpuPreferences correctly in GpuDataManagerImplPrivate::AppendGpuCommandLine. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 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 2bb437a27e173c3e94f8ddda39029022279f4b1b..7b436f306627f6b2c2d2ede94ff8d9a0435111f9 100644
--- a/content/browser/gpu/gpu_data_manager_impl.h
+++ b/content/browser/gpu/gpu_data_manager_impl.h
@@ -31,6 +31,7 @@ class CommandLine;
}
namespace gpu {
+struct GpuPreferences;
struct VideoMemoryUsageStats;
}
@@ -113,7 +114,11 @@ class CONTENT_EXPORT GpuDataManagerImpl
void AppendRendererCommandLine(base::CommandLine* command_line) const;
// Insert switches into gpu process command line: kUseGL, etc.
- void AppendGpuCommandLine(base::CommandLine* command_line) const;
+ // If the gpu_preferences isn't a nullptr, the gpu_preferences will be set
+ // for some GPU switches which have been replaced by GpuPreferences, and those
+ // switches will not be append to the command_line anymore.
+ void AppendGpuCommandLine(base::CommandLine* command_line,
+ gpu::GpuPreferences* gpu_preferences) const;
// Update WebPreferences for renderer based on blacklisting decisions.
void UpdateRendererWebPrefs(WebPreferences* prefs) const;
« 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