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

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

Issue 2715563002: Moving SwiftShader from component to bundled library (Closed)
Patch Set: Specify x11 only support on Linux 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 bool IsDriverBugWorkaroundActive(int feature) const; 47 bool IsDriverBugWorkaroundActive(int feature) const;
48 gpu::GPUInfo GetGPUInfo() const; 48 gpu::GPUInfo GetGPUInfo() const;
49 void GetGpuProcessHandles( 49 void GetGpuProcessHandles(
50 const GpuDataManager::GetGpuProcessHandlesCallback& callback) const; 50 const GpuDataManager::GetGpuProcessHandlesCallback& callback) const;
51 bool GpuAccessAllowed(std::string* reason) const; 51 bool GpuAccessAllowed(std::string* reason) const;
52 void RequestCompleteGpuInfoIfNeeded(); 52 void RequestCompleteGpuInfoIfNeeded();
53 bool IsEssentialGpuInfoAvailable() const; 53 bool IsEssentialGpuInfoAvailable() const;
54 bool IsCompleteGpuInfoAvailable() const; 54 bool IsCompleteGpuInfoAvailable() const;
55 void RequestVideoMemoryUsageStatsUpdate() const; 55 void RequestVideoMemoryUsageStatsUpdate() const;
56 bool ShouldUseSwiftShader() const; 56 bool ShouldUseSwiftShader() const;
57 void RegisterSwiftShaderPath(const base::FilePath& path);
58 void AddObserver(GpuDataManagerObserver* observer); 57 void AddObserver(GpuDataManagerObserver* observer);
59 void RemoveObserver(GpuDataManagerObserver* observer); 58 void RemoveObserver(GpuDataManagerObserver* observer);
60 void UnblockDomainFrom3DAPIs(const GURL& url); 59 void UnblockDomainFrom3DAPIs(const GURL& url);
61 void SetGLStrings(const std::string& gl_vendor, 60 void SetGLStrings(const std::string& gl_vendor,
62 const std::string& gl_renderer, 61 const std::string& gl_renderer,
63 const std::string& gl_version); 62 const std::string& gl_version);
64 void GetGLStrings(std::string* gl_vendor, 63 void GetGLStrings(std::string* gl_vendor,
65 std::string* gl_renderer, 64 std::string* gl_renderer,
66 std::string* gl_version); 65 std::string* gl_version);
67 void DisableHardwareAcceleration(); 66 void DisableHardwareAcceleration();
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 241
243 std::unique_ptr<gpu::GpuBlacklist> gpu_blacklist_; 242 std::unique_ptr<gpu::GpuBlacklist> gpu_blacklist_;
244 std::unique_ptr<gpu::GpuDriverBugList> gpu_driver_bug_list_; 243 std::unique_ptr<gpu::GpuDriverBugList> gpu_driver_bug_list_;
245 244
246 const scoped_refptr<GpuDataManagerObserverList> observer_list_; 245 const scoped_refptr<GpuDataManagerObserverList> observer_list_;
247 246
248 std::vector<LogMessage> log_messages_; 247 std::vector<LogMessage> log_messages_;
249 248
250 bool use_swiftshader_; 249 bool use_swiftshader_;
251 250
252 base::FilePath swiftshader_path_;
253
254 // Current card force-blacklisted due to GPU crashes, or disabled through 251 // Current card force-blacklisted due to GPU crashes, or disabled through
255 // the --disable-gpu commandline switch. 252 // the --disable-gpu commandline switch.
256 bool card_blacklisted_; 253 bool card_blacklisted_;
257 254
258 // We disable histogram stuff in testing, especially in unit tests because 255 // We disable histogram stuff in testing, especially in unit tests because
259 // they cause random failures. 256 // they cause random failures.
260 bool update_histograms_; 257 bool update_histograms_;
261 258
262 DomainBlockMap blocked_domains_; 259 DomainBlockMap blocked_domains_;
263 mutable std::list<base::Time> timestamps_of_gpu_resets_; 260 mutable std::list<base::Time> timestamps_of_gpu_resets_;
(...skipping 17 matching lines...) Expand all
281 // If one tries to call a member before initialization then it is defered 278 // If one tries to call a member before initialization then it is defered
282 // until Initialize() is completed. 279 // until Initialize() is completed.
283 std::vector<base::Closure> post_init_tasks_; 280 std::vector<base::Closure> post_init_tasks_;
284 281
285 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate); 282 DISALLOW_COPY_AND_ASSIGN(GpuDataManagerImplPrivate);
286 }; 283 };
287 284
288 } // namespace content 285 } // namespace content
289 286
290 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_ 287 #endif // CONTENT_BROWSER_GPU_GPU_DATA_MANAGER_IMPL_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698