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.h

Issue 633843002: Replacing the OVERRIDE with override and FINAL with final in content/browser/[dom_storage|gamepad|… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_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 <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 DOMAIN_BLOCK_STATUS_ALL_DOMAINS_BLOCKED, 53 DOMAIN_BLOCK_STATUS_ALL_DOMAINS_BLOCKED,
54 DOMAIN_BLOCK_STATUS_NOT_BLOCKED 54 DOMAIN_BLOCK_STATUS_NOT_BLOCKED
55 }; 55 };
56 56
57 // Getter for the singleton. This will return NULL on failure. 57 // Getter for the singleton. This will return NULL on failure.
58 static GpuDataManagerImpl* GetInstance(); 58 static GpuDataManagerImpl* GetInstance();
59 59
60 // GpuDataManager implementation. 60 // GpuDataManager implementation.
61 virtual void InitializeForTesting( 61 virtual void InitializeForTesting(
62 const std::string& gpu_blacklist_json, 62 const std::string& gpu_blacklist_json,
63 const gpu::GPUInfo& gpu_info) OVERRIDE; 63 const gpu::GPUInfo& gpu_info) override;
64 virtual bool IsFeatureBlacklisted(int feature) const OVERRIDE; 64 virtual bool IsFeatureBlacklisted(int feature) const override;
65 virtual gpu::GPUInfo GetGPUInfo() const OVERRIDE; 65 virtual gpu::GPUInfo GetGPUInfo() const override;
66 virtual void GetGpuProcessHandles( 66 virtual void GetGpuProcessHandles(
67 const GetGpuProcessHandlesCallback& callback) const OVERRIDE; 67 const GetGpuProcessHandlesCallback& callback) const override;
68 virtual bool GpuAccessAllowed(std::string* reason) const OVERRIDE; 68 virtual bool GpuAccessAllowed(std::string* reason) const override;
69 virtual void RequestCompleteGpuInfoIfNeeded() OVERRIDE; 69 virtual void RequestCompleteGpuInfoIfNeeded() override;
70 virtual bool IsEssentialGpuInfoAvailable() const OVERRIDE; 70 virtual bool IsEssentialGpuInfoAvailable() const override;
71 virtual bool IsCompleteGpuInfoAvailable() const OVERRIDE; 71 virtual bool IsCompleteGpuInfoAvailable() const override;
72 virtual void RequestVideoMemoryUsageStatsUpdate() const OVERRIDE; 72 virtual void RequestVideoMemoryUsageStatsUpdate() const override;
73 virtual bool ShouldUseSwiftShader() const OVERRIDE; 73 virtual bool ShouldUseSwiftShader() const override;
74 virtual void RegisterSwiftShaderPath(const base::FilePath& path) OVERRIDE; 74 virtual void RegisterSwiftShaderPath(const base::FilePath& path) override;
75 virtual bool ShouldUseWarp() const OVERRIDE; 75 virtual bool ShouldUseWarp() const override;
76 virtual void AddObserver(GpuDataManagerObserver* observer) OVERRIDE; 76 virtual void AddObserver(GpuDataManagerObserver* observer) override;
77 virtual void RemoveObserver(GpuDataManagerObserver* observer) OVERRIDE; 77 virtual void RemoveObserver(GpuDataManagerObserver* observer) override;
78 virtual void UnblockDomainFrom3DAPIs(const GURL& url) OVERRIDE; 78 virtual void UnblockDomainFrom3DAPIs(const GURL& url) override;
79 virtual void DisableGpuWatchdog() OVERRIDE; 79 virtual void DisableGpuWatchdog() override;
80 virtual void SetGLStrings(const std::string& gl_vendor, 80 virtual void SetGLStrings(const std::string& gl_vendor,
81 const std::string& gl_renderer, 81 const std::string& gl_renderer,
82 const std::string& gl_version) OVERRIDE; 82 const std::string& gl_version) override;
83 virtual void GetGLStrings(std::string* gl_vendor, 83 virtual void GetGLStrings(std::string* gl_vendor,
84 std::string* gl_renderer, 84 std::string* gl_renderer,
85 std::string* gl_version) OVERRIDE; 85 std::string* gl_version) override;
86 virtual void DisableHardwareAcceleration() OVERRIDE; 86 virtual void DisableHardwareAcceleration() override;
87 virtual bool CanUseGpuBrowserCompositor() const OVERRIDE; 87 virtual bool CanUseGpuBrowserCompositor() const override;
88 88
89 // This collects preliminary GPU info, load GpuBlacklist, and compute the 89 // This collects preliminary GPU info, load GpuBlacklist, and compute the
90 // preliminary blacklisted features; it should only be called at browser 90 // preliminary blacklisted features; it should only be called at browser
91 // startup time in UI thread before the IO restriction is turned on. 91 // startup time in UI thread before the IO restriction is turned on.
92 void Initialize(); 92 void Initialize();
93 93
94 // Only update if the current GPUInfo is not finalized. If blacklist is 94 // Only update if the current GPUInfo is not finalized. If blacklist is
95 // loaded, run through blacklist and update blacklisted features. 95 // loaded, run through blacklist and update blacklisted features.
96 void UpdateGpuInfo(const gpu::GPUInfo& gpu_info); 96 void UpdateGpuInfo(const gpu::GPUInfo& gpu_info);
97 97
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 211
212 mutable base::Lock lock_; 212 mutable base::Lock lock_;
213 scoped_ptr<GpuDataManagerImplPrivate> private_; 213 scoped_ptr<GpuDataManagerImplPrivate> private_;
214 214
215 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); 215 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl);
216 }; 216 };
217 217
218 } // namespace content 218 } // namespace content
219 219
220 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ 220 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/browser_gpu_channel_host_factory.h ('k') | content/browser/gpu/gpu_data_manager_impl_private_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698