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

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl_private.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_
6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 11 matching lines...) Expand all
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "content/browser/gpu/gpu_data_manager_impl.h" 23 #include "content/browser/gpu/gpu_data_manager_impl.h"
24 #include "gpu/config/gpu_blacklist.h" 24 #include "gpu/config/gpu_blacklist.h"
25 #include "gpu/config/gpu_driver_bug_list.h" 25 #include "gpu/config/gpu_driver_bug_list.h"
26 26
27 namespace base { 27 namespace base {
28 class CommandLine; 28 class CommandLine;
29 } 29 }
30 30
31 namespace gpu { 31 namespace gpu {
32 struct GpuPreferences;
32 struct VideoMemoryUsageStats; 33 struct VideoMemoryUsageStats;
33 } 34 }
34 35
35 namespace content { 36 namespace content {
36 37
37 class CONTENT_EXPORT GpuDataManagerImplPrivate { 38 class CONTENT_EXPORT GpuDataManagerImplPrivate {
38 public: 39 public:
39 static GpuDataManagerImplPrivate* Create(GpuDataManagerImpl* owner); 40 static GpuDataManagerImplPrivate* Create(GpuDataManagerImpl* owner);
40 41
41 void InitializeForTesting( 42 void InitializeForTesting(
(...skipping 25 matching lines...) Expand all
67 68
68 void Initialize(); 69 void Initialize();
69 70
70 void UpdateGpuInfo(const gpu::GPUInfo& gpu_info); 71 void UpdateGpuInfo(const gpu::GPUInfo& gpu_info);
71 72
72 void UpdateVideoMemoryUsageStats( 73 void UpdateVideoMemoryUsageStats(
73 const gpu::VideoMemoryUsageStats& video_memory_usage_stats); 74 const gpu::VideoMemoryUsageStats& video_memory_usage_stats);
74 75
75 void AppendRendererCommandLine(base::CommandLine* command_line) const; 76 void AppendRendererCommandLine(base::CommandLine* command_line) const;
76 77
77 void AppendGpuCommandLine(base::CommandLine* command_line) const; 78 void AppendGpuCommandLine(base::CommandLine* command_line,
79 gpu::GpuPreferences* gpu_preferences) const;
78 80
79 void UpdateRendererWebPrefs(WebPreferences* prefs) const; 81 void UpdateRendererWebPrefs(WebPreferences* prefs) const;
80 82
81 std::string GetBlacklistVersion() const; 83 std::string GetBlacklistVersion() const;
82 std::string GetDriverBugListVersion() const; 84 std::string GetDriverBugListVersion() const;
83 85
84 void GetBlacklistReasons(base::ListValue* reasons) const; 86 void GetBlacklistReasons(base::ListValue* reasons) const;
85 87
86 std::vector<std::string> GetDriverBugWorkarounds() const; 88 std::vector<std::string> GetDriverBugWorkarounds() const;
87 89
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // If one tries to call a member before initialization then it is defered 277 // If one tries to call a member before initialization then it is defered
276 // until Initialize() is completed. 278 // until Initialize() is completed.
277 std::vector<base::Closure> post_init_tasks_; 279 std::vector<base::Closure> post_init_tasks_;
278 280
279 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); 281 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate);
280 }; 282 };
281 283
282 } // namespace content 284 } // namespace content
283 285
284 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ 286 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl.cc ('k') | content/browser/gpu/gpu_data_manager_impl_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698