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

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl_private.h

Issue 2827323002: gpu:: Remove GpuDataManagerObserver::OnVideoMemoryUsageStatsUpdate(). (Closed)
Patch Set: . Created 3 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 const gpu::GPUInfo& gpu_info); 43 const gpu::GPUInfo& gpu_info);
44 bool IsFeatureBlacklisted(int feature) const; 44 bool IsFeatureBlacklisted(int feature) const;
45 bool IsFeatureEnabled(int feature) const; 45 bool IsFeatureEnabled(int feature) const;
46 bool IsWebGLEnabled() const; 46 bool IsWebGLEnabled() const;
47 bool IsDriverBugWorkaroundActive(int feature) const; 47 bool IsDriverBugWorkaroundActive(int feature) const;
48 gpu::GPUInfo GetGPUInfo() const; 48 gpu::GPUInfo GetGPUInfo() const;
49 bool GpuAccessAllowed(std::string* reason) const; 49 bool GpuAccessAllowed(std::string* reason) const;
50 void RequestCompleteGpuInfoIfNeeded(); 50 void RequestCompleteGpuInfoIfNeeded();
51 bool IsEssentialGpuInfoAvailable() const; 51 bool IsEssentialGpuInfoAvailable() const;
52 bool IsCompleteGpuInfoAvailable() const; 52 bool IsCompleteGpuInfoAvailable() const;
53 void RequestVideoMemoryUsageStatsUpdate() const; 53 void RequestVideoMemoryUsageStatsUpdate(
54 const base::Callback<void(const gpu::VideoMemoryUsageStats& stats)>&
55 callback) const;
54 bool ShouldUseSwiftShader() const; 56 bool ShouldUseSwiftShader() const;
55 void AddObserver(GpuDataManagerObserver* observer); 57 void AddObserver(GpuDataManagerObserver* observer);
56 void RemoveObserver(GpuDataManagerObserver* observer); 58 void RemoveObserver(GpuDataManagerObserver* observer);
57 void UnblockDomainFrom3DAPIs(const GURL& url); 59 void UnblockDomainFrom3DAPIs(const GURL& url);
58 void SetGLStrings(const std::string& gl_vendor, 60 void SetGLStrings(const std::string& gl_vendor,
59 const std::string& gl_renderer, 61 const std::string& gl_renderer,
60 const std::string& gl_version); 62 const std::string& gl_version);
61 void GetGLStrings(std::string* gl_vendor, 63 void GetGLStrings(std::string* gl_vendor,
62 std::string* gl_renderer, 64 std::string* gl_renderer,
63 std::string* gl_version); 65 std::string* gl_version);
64 void DisableHardwareAcceleration(); 66 void DisableHardwareAcceleration();
65 void SetGpuInfo(const gpu::GPUInfo& gpu_info); 67 void SetGpuInfo(const gpu::GPUInfo& gpu_info);
66 68
67 void Initialize(); 69 void Initialize();
68 70
69 void UpdateGpuInfo(const gpu::GPUInfo& gpu_info); 71 void UpdateGpuInfo(const gpu::GPUInfo& gpu_info);
70 void UpdateGpuFeatureInfo(const gpu::GpuFeatureInfo& gpu_feature_info); 72 void UpdateGpuFeatureInfo(const gpu::GpuFeatureInfo& gpu_feature_info);
71 73
72 void UpdateVideoMemoryUsageStats(
73 const gpu::VideoMemoryUsageStats& video_memory_usage_stats);
74
75 void AppendRendererCommandLine(base::CommandLine* command_line) const; 74 void AppendRendererCommandLine(base::CommandLine* command_line) const;
76 75
77 void AppendGpuCommandLine(base::CommandLine* command_line, 76 void AppendGpuCommandLine(base::CommandLine* command_line,
78 gpu::GpuPreferences* gpu_preferences) const; 77 gpu::GpuPreferences* gpu_preferences) const;
79 78
80 void UpdateRendererWebPrefs(WebPreferences* prefs) const; 79 void UpdateRendererWebPrefs(WebPreferences* prefs) const;
81 80
82 std::string GetBlacklistVersion() const; 81 std::string GetBlacklistVersion() const;
83 std::string GetDriverBugListVersion() const; 82 std::string GetDriverBugListVersion() const;
84 83
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 // 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
279 // until Initialize() is completed. 278 // until Initialize() is completed.
280 std::vector<base::Closure> post_init_tasks_; 279 std::vector<base::Closure> post_init_tasks_;
281 280
282 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); 281 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate);
283 }; 282 };
284 283
285 } // namespace content 284 } // namespace content
286 285
287 #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