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

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl.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
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/browser/gpu/gpu_data_manager_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_
6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ 6 #define CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 }; 63 };
64 64
65 // Getter for the singleton. This will return NULL on failure. 65 // Getter for the singleton. This will return NULL on failure.
66 static GpuDataManagerImpl* GetInstance(); 66 static GpuDataManagerImpl* GetInstance();
67 67
68 // GpuDataManager implementation. 68 // GpuDataManager implementation.
69 void InitializeForTesting(const std::string& gpu_blacklist_json, 69 void InitializeForTesting(const std::string& gpu_blacklist_json,
70 const gpu::GPUInfo& gpu_info) override; 70 const gpu::GPUInfo& gpu_info) override;
71 bool IsFeatureBlacklisted(int feature) const override; 71 bool IsFeatureBlacklisted(int feature) const override;
72 bool IsFeatureEnabled(int feature) const override; 72 bool IsFeatureEnabled(int feature) const override;
73 bool IsWebGLEnabled() const override;
73 gpu::GPUInfo GetGPUInfo() const override; 74 gpu::GPUInfo GetGPUInfo() const override;
74 void GetGpuProcessHandles( 75 void GetGpuProcessHandles(
75 const GetGpuProcessHandlesCallback& callback) const override; 76 const GetGpuProcessHandlesCallback& callback) const override;
76 bool GpuAccessAllowed(std::string* reason) const override; 77 bool GpuAccessAllowed(std::string* reason) const override;
77 void RequestCompleteGpuInfoIfNeeded() override; 78 void RequestCompleteGpuInfoIfNeeded() override;
78 bool IsEssentialGpuInfoAvailable() const override; 79 bool IsEssentialGpuInfoAvailable() const override;
79 bool IsCompleteGpuInfoAvailable() const override; 80 bool IsCompleteGpuInfoAvailable() const override;
80 void RequestVideoMemoryUsageStatsUpdate() const override; 81 void RequestVideoMemoryUsageStatsUpdate() const override;
81 bool ShouldUseSwiftShader() const override; 82 bool ShouldUseSwiftShader() const override;
82 void RegisterSwiftShaderPath(const base::FilePath& path) override; 83 void RegisterSwiftShaderPath(const base::FilePath& path) override;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 227
227 mutable base::Lock lock_; 228 mutable base::Lock lock_;
228 std::unique_ptr<GpuDataManagerImplPrivate> private_; 229 std::unique_ptr<GpuDataManagerImplPrivate> private_;
229 230
230 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); 231 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl);
231 }; 232 };
232 233
233 } // namespace content 234 } // namespace content
234 235
235 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ 236 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/browser/gpu/gpu_data_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698