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

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

Issue 2737983002: WebGL feature will only enabled when accelerated (Closed)
Patch Set: Formatting fix Created 3 years, 9 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 26 matching lines...) Expand all
37 37
38 class CONTENT_EXPORT GpuDataManagerImplPrivate { 38 class CONTENT_EXPORT GpuDataManagerImplPrivate {
39 public: 39 public:
40 static GpuDataManagerImplPrivate* Create(GpuDataManagerImpl* owner); 40 static GpuDataManagerImplPrivate* Create(GpuDataManagerImpl* owner);
41 41
42 void InitializeForTesting( 42 void InitializeForTesting(
43 const std::string& gpu_blacklist_json, 43 const std::string& gpu_blacklist_json,
44 const gpu::GPUInfo& gpu_info); 44 const gpu::GPUInfo& gpu_info);
45 bool IsFeatureBlacklisted(int feature) const; 45 bool IsFeatureBlacklisted(int feature) const;
46 bool IsFeatureEnabled(int feature) const; 46 bool IsFeatureEnabled(int feature) const;
47 bool IsWebGLEnabled() const;
47 bool IsDriverBugWorkaroundActive(int feature) const; 48 bool IsDriverBugWorkaroundActive(int feature) const;
48 gpu::GPUInfo GetGPUInfo() const; 49 gpu::GPUInfo GetGPUInfo() const;
49 void GetGpuProcessHandles( 50 void GetGpuProcessHandles(
50 const GpuDataManager::GetGpuProcessHandlesCallback& callback) const; 51 const GpuDataManager::GetGpuProcessHandlesCallback& callback) const;
51 bool GpuAccessAllowed(std::string* reason) const; 52 bool GpuAccessAllowed(std::string* reason) const;
52 void RequestCompleteGpuInfoIfNeeded(); 53 void RequestCompleteGpuInfoIfNeeded();
53 bool IsEssentialGpuInfoAvailable() const; 54 bool IsEssentialGpuInfoAvailable() const;
54 bool IsCompleteGpuInfoAvailable() const; 55 bool IsCompleteGpuInfoAvailable() const;
55 void RequestVideoMemoryUsageStatsUpdate() const; 56 void RequestVideoMemoryUsageStatsUpdate() const;
56 bool ShouldUseSwiftShader() const; 57 bool ShouldUseSwiftShader() const;
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 // If one tries to call a member before initialization then it is defered 284 // If one tries to call a member before initialization then it is defered
284 // until Initialize() is completed. 285 // until Initialize() is completed.
285 std::vector<base::Closure> post_init_tasks_; 286 std::vector<base::Closure> post_init_tasks_;
286 287
287 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); 288 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate);
288 }; 289 };
289 290
290 } // namespace content 291 } // namespace content
291 292
292 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ 293 #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