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

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

Issue 12213066: Use base namespace for FilePath in content/browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 const GPUInfo& gpu_info) OVERRIDE; 58 const GPUInfo& gpu_info) OVERRIDE;
59 virtual GpuFeatureType GetBlacklistedFeatures() const OVERRIDE; 59 virtual GpuFeatureType GetBlacklistedFeatures() const OVERRIDE;
60 virtual GPUInfo GetGPUInfo() const OVERRIDE; 60 virtual GPUInfo GetGPUInfo() const OVERRIDE;
61 virtual void GetGpuProcessHandles( 61 virtual void GetGpuProcessHandles(
62 const GetGpuProcessHandlesCallback& callback) const OVERRIDE; 62 const GetGpuProcessHandlesCallback& callback) const OVERRIDE;
63 virtual bool GpuAccessAllowed() const OVERRIDE; 63 virtual bool GpuAccessAllowed() const OVERRIDE;
64 virtual void RequestCompleteGpuInfoIfNeeded() OVERRIDE; 64 virtual void RequestCompleteGpuInfoIfNeeded() OVERRIDE;
65 virtual bool IsCompleteGpuInfoAvailable() const OVERRIDE; 65 virtual bool IsCompleteGpuInfoAvailable() const OVERRIDE;
66 virtual void RequestVideoMemoryUsageStatsUpdate() const OVERRIDE; 66 virtual void RequestVideoMemoryUsageStatsUpdate() const OVERRIDE;
67 virtual bool ShouldUseSoftwareRendering() const OVERRIDE; 67 virtual bool ShouldUseSoftwareRendering() const OVERRIDE;
68 virtual void RegisterSwiftShaderPath(const FilePath& path) OVERRIDE; 68 virtual void RegisterSwiftShaderPath(const base::FilePath& path) OVERRIDE;
69 virtual void AddObserver(GpuDataManagerObserver* observer) OVERRIDE; 69 virtual void AddObserver(GpuDataManagerObserver* observer) OVERRIDE;
70 virtual void RemoveObserver(GpuDataManagerObserver* observer) OVERRIDE; 70 virtual void RemoveObserver(GpuDataManagerObserver* observer) OVERRIDE;
71 virtual void SetWindowCount(uint32 count) OVERRIDE; 71 virtual void SetWindowCount(uint32 count) OVERRIDE;
72 virtual uint32 GetWindowCount() const OVERRIDE; 72 virtual uint32 GetWindowCount() const OVERRIDE;
73 virtual void UnblockDomainFrom3DAPIs(const GURL& url) OVERRIDE; 73 virtual void UnblockDomainFrom3DAPIs(const GURL& url) OVERRIDE;
74 virtual void DisableGpuWatchdog() OVERRIDE; 74 virtual void DisableGpuWatchdog() OVERRIDE;
75 virtual void SetGLStrings(const std::string& gl_vendor, 75 virtual void SetGLStrings(const std::string& gl_vendor,
76 const std::string& gl_renderer, 76 const std::string& gl_renderer,
77 const std::string& gl_version) OVERRIDE; 77 const std::string& gl_version) OVERRIDE;
78 virtual void GetGLStrings(std::string* gl_vendor, 78 virtual void GetGLStrings(std::string* gl_vendor,
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 230
231 scoped_ptr<GpuBlacklist> gpu_blacklist_; 231 scoped_ptr<GpuBlacklist> gpu_blacklist_;
232 232
233 const scoped_refptr<GpuDataManagerObserverList> observer_list_; 233 const scoped_refptr<GpuDataManagerObserverList> observer_list_;
234 234
235 ListValue log_messages_; 235 ListValue log_messages_;
236 mutable base::Lock log_messages_lock_; 236 mutable base::Lock log_messages_lock_;
237 237
238 bool software_rendering_; 238 bool software_rendering_;
239 239
240 FilePath swiftshader_path_; 240 base::FilePath swiftshader_path_;
241 241
242 // Current card force-blacklisted due to GPU crashes, or disabled through 242 // Current card force-blacklisted due to GPU crashes, or disabled through
243 // the --disable-gpu commandline switch. 243 // the --disable-gpu commandline switch.
244 bool card_blacklisted_; 244 bool card_blacklisted_;
245 245
246 // We disable histogram stuff in testing, especially in unit tests because 246 // We disable histogram stuff in testing, especially in unit tests because
247 // they cause random failures. 247 // they cause random failures.
248 bool update_histograms_; 248 bool update_histograms_;
249 249
250 // Number of currently open windows, to be used in gpu memory allocation. 250 // Number of currently open windows, to be used in gpu memory allocation.
251 int window_count_; 251 int window_count_;
252 252
253 DomainBlockMap blocked_domains_; 253 DomainBlockMap blocked_domains_;
254 mutable std::list<base::Time> timestamps_of_gpu_resets_; 254 mutable std::list<base::Time> timestamps_of_gpu_resets_;
255 bool domain_blocking_enabled_; 255 bool domain_blocking_enabled_;
256 256
257 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl); 257 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImpl);
258 }; 258 };
259 259
260 } // namespace content 260 } // namespace content
261 261
262 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_ 262 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_crash_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