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

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

Issue 2810593003: gpu: Some cleanups. (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 28 matching lines...) Expand all
39 public: 39 public:
40 static GpuDataManagerImplPrivate* Create(GpuDataManagerImpl* owner); 40 static GpuDataManagerImplPrivate* Create(GpuDataManagerImpl* owner);
41 41
42 void InitializeForTesting(const gpu::GpuControlListData& gpu_blacklist_data, 42 void InitializeForTesting(const gpu::GpuControlListData& gpu_blacklist_data,
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 void GetGpuProcessHandles(
50 const GpuDataManager::GetGpuProcessHandlesCallback& callback) const;
51 bool GpuAccessAllowed(std::string* reason) const; 49 bool GpuAccessAllowed(std::string* reason) const;
52 void RequestCompleteGpuInfoIfNeeded(); 50 void RequestCompleteGpuInfoIfNeeded();
53 bool IsEssentialGpuInfoAvailable() const; 51 bool IsEssentialGpuInfoAvailable() const;
54 bool IsCompleteGpuInfoAvailable() const; 52 bool IsCompleteGpuInfoAvailable() const;
55 void RequestVideoMemoryUsageStatsUpdate() const; 53 void RequestVideoMemoryUsageStatsUpdate() const;
56 bool ShouldUseSwiftShader() const; 54 bool ShouldUseSwiftShader() const;
57 void AddObserver(GpuDataManagerObserver* observer); 55 void AddObserver(GpuDataManagerObserver* observer);
58 void RemoveObserver(GpuDataManagerObserver* observer); 56 void RemoveObserver(GpuDataManagerObserver* observer);
59 void UnblockDomainFrom3DAPIs(const GURL& url); 57 void UnblockDomainFrom3DAPIs(const GURL& url);
60 void SetGLStrings(const std::string& gl_vendor, 58 void SetGLStrings(const std::string& gl_vendor,
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 // If one tries to call a member before initialization then it is defered 278 // If one tries to call a member before initialization then it is defered
281 // until Initialize() is completed. 279 // until Initialize() is completed.
282 std::vector<base::Closure> post_init_tasks_; 280 std::vector<base::Closure> post_init_tasks_;
283 281
284 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); 282 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate);
285 }; 283 };
286 284
287 } // namespace content 285 } // namespace content
288 286
289 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ 287 #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