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

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

Issue 534043002: Add bits to indicate which parts of GPUInfo are collected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 20 matching lines...) Expand all
31 void InitializeForTesting( 31 void InitializeForTesting(
32 const std::string& gpu_blacklist_json, 32 const std::string& gpu_blacklist_json,
33 const gpu::GPUInfo& gpu_info); 33 const gpu::GPUInfo& gpu_info);
34 bool IsFeatureBlacklisted(int feature) const; 34 bool IsFeatureBlacklisted(int feature) const;
35 bool IsDriverBugWorkaroundActive(int feature) const; 35 bool IsDriverBugWorkaroundActive(int feature) const;
36 gpu::GPUInfo GetGPUInfo() const; 36 gpu::GPUInfo GetGPUInfo() const;
37 void GetGpuProcessHandles( 37 void GetGpuProcessHandles(
38 const GpuDataManager::GetGpuProcessHandlesCallback& callback) const; 38 const GpuDataManager::GetGpuProcessHandlesCallback& callback) const;
39 bool GpuAccessAllowed(std::string* reason) const; 39 bool GpuAccessAllowed(std::string* reason) const;
40 void RequestCompleteGpuInfoIfNeeded(); 40 void RequestCompleteGpuInfoIfNeeded();
41 bool IsEssentialGpuInfoAvailable() const;
41 bool IsCompleteGpuInfoAvailable() const; 42 bool IsCompleteGpuInfoAvailable() const;
42 void RequestVideoMemoryUsageStatsUpdate() const; 43 void RequestVideoMemoryUsageStatsUpdate() const;
43 bool ShouldUseSwiftShader() const; 44 bool ShouldUseSwiftShader() const;
44 void RegisterSwiftShaderPath(const base::FilePath& path); 45 void RegisterSwiftShaderPath(const base::FilePath& path);
45 void AddObserver(GpuDataManagerObserver* observer); 46 void AddObserver(GpuDataManagerObserver* observer);
46 void RemoveObserver(GpuDataManagerObserver* observer); 47 void RemoveObserver(GpuDataManagerObserver* observer);
47 void UnblockDomainFrom3DAPIs(const GURL& url); 48 void UnblockDomainFrom3DAPIs(const GURL& url);
48 void DisableGpuWatchdog(); 49 void DisableGpuWatchdog();
49 void SetGLStrings(const std::string& gl_vendor, 50 void SetGLStrings(const std::string& gl_vendor,
50 const std::string& gl_renderer, 51 const std::string& gl_renderer,
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // True if all future Initialize calls should be ignored. 258 // True if all future Initialize calls should be ignored.
258 bool finalized_; 259 bool finalized_;
259 260
260 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); 261 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate);
261 }; 262 };
262 263
263 } // namespace content 264 } // namespace content
264 265
265 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ 266 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_
266 267
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