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

Side by Side Diff: content/public/browser/gpu_data_manager.h

Issue 14146011: Renamed 'software_rendering' to 'swiftshader' to differentiate from (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 6 #define CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // Requests complete GPUinfo if it has not already been requested 55 // Requests complete GPUinfo if it has not already been requested
56 virtual void RequestCompleteGpuInfoIfNeeded() = 0; 56 virtual void RequestCompleteGpuInfoIfNeeded() = 0;
57 57
58 virtual bool IsCompleteGpuInfoAvailable() const = 0; 58 virtual bool IsCompleteGpuInfoAvailable() const = 0;
59 59
60 // Requests that the GPU process report its current video memory usage stats, 60 // Requests that the GPU process report its current video memory usage stats,
61 // which can be retrieved via the GPU data manager's on-update function. 61 // which can be retrieved via the GPU data manager's on-update function.
62 virtual void RequestVideoMemoryUsageStatsUpdate() const = 0; 62 virtual void RequestVideoMemoryUsageStatsUpdate() const = 0;
63 63
64 // Returns true if the software rendering should currently be used. 64 // Returns true if SwiftShader should be used.
65 virtual bool ShouldUseSoftwareRendering() const = 0; 65 virtual bool ShouldUseSwiftShader() const = 0;
66 66
67 // Register a path to the SwiftShader software renderer. 67 // Register a path to SwiftShader.
68 virtual void RegisterSwiftShaderPath(const base::FilePath& path) = 0; 68 virtual void RegisterSwiftShaderPath(const base::FilePath& path) = 0;
69 69
70 // Registers/unregister |observer|. 70 // Registers/unregister |observer|.
71 virtual void AddObserver(GpuDataManagerObserver* observer) = 0; 71 virtual void AddObserver(GpuDataManagerObserver* observer) = 0;
72 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0; 72 virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0;
73 73
74 // Allows a given domain previously blocked from accessing 3D APIs 74 // Allows a given domain previously blocked from accessing 3D APIs
75 // to access them again. 75 // to access them again.
76 virtual void UnblockDomainFrom3DAPIs(const GURL& url) = 0; 76 virtual void UnblockDomainFrom3DAPIs(const GURL& url) = 0;
77 77
(...skipping 14 matching lines...) Expand all
92 // Turn off all hardware acceleration. 92 // Turn off all hardware acceleration.
93 virtual void DisableHardwareAcceleration() = 0; 93 virtual void DisableHardwareAcceleration() = 0;
94 94
95 protected: 95 protected:
96 virtual ~GpuDataManager() {} 96 virtual ~GpuDataManager() {}
97 }; 97 };
98 98
99 }; // namespace content 99 }; // namespace content
100 100
101 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 101 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698