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

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

Issue 2745733002: Revert of Added HardwareAccelerationEnabled() function (Closed)
Patch Set: 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_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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void AddObserver(GpuDataManagerObserver* observer) override; 88 void AddObserver(GpuDataManagerObserver* observer) override;
89 void RemoveObserver(GpuDataManagerObserver* observer) override; 89 void RemoveObserver(GpuDataManagerObserver* observer) override;
90 void UnblockDomainFrom3DAPIs(const GURL& url) override; 90 void UnblockDomainFrom3DAPIs(const GURL& url) override;
91 void SetGLStrings(const std::string& gl_vendor, 91 void SetGLStrings(const std::string& gl_vendor,
92 const std::string& gl_renderer, 92 const std::string& gl_renderer,
93 const std::string& gl_version) override; 93 const std::string& gl_version) override;
94 void GetGLStrings(std::string* gl_vendor, 94 void GetGLStrings(std::string* gl_vendor,
95 std::string* gl_renderer, 95 std::string* gl_renderer,
96 std::string* gl_version) override; 96 std::string* gl_version) override;
97 void DisableHardwareAcceleration() override; 97 void DisableHardwareAcceleration() override;
98 bool HardwareAccelerationEnabled() const override;
99 bool CanUseGpuBrowserCompositor() const override; 98 bool CanUseGpuBrowserCompositor() const override;
100 void GetDisabledExtensions(std::string* disabled_extensions) const override; 99 void GetDisabledExtensions(std::string* disabled_extensions) const override;
101 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override; 100 void SetGpuInfo(const gpu::GPUInfo& gpu_info) override;
102 101
103 // This collects preliminary GPU info, load GpuBlacklist, and compute the 102 // This collects preliminary GPU info, load GpuBlacklist, and compute the
104 // preliminary blacklisted features; it should only be called at browser 103 // preliminary blacklisted features; it should only be called at browser
105 // startup time in UI thread before the IO restriction is turned on. 104 // startup time in UI thread before the IO restriction is turned on.
106 void Initialize(); 105 void Initialize();
107 106
108 // Only update if the current GPUInfo is not finalized. If blacklist is 107 // Only update if the current GPUInfo is not finalized. If blacklist is
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 225
227 mutable base::Lock lock_; 226 mutable base::Lock lock_;
228 std::unique_ptr<GpuDataManagerImplPrivate> private_; 227 std::unique_ptr<GpuDataManagerImplPrivate> private_;
229 228
230 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); 229 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl);
231 }; 230 };
232 231
233 } // namespace content 232 } // namespace content
234 233
235 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ 234 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_browsertest.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