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

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

Issue 534043002: Add bits to indicate which parts of GPUInfo are collected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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) 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // process, establish GPU channel, and GPU info collection, should be 53 // process, establish GPU channel, and GPU info collection, should be
54 // blocked. 54 // blocked.
55 // Can be called on any thread. 55 // Can be called on any thread.
56 // If |reason| is not NULL and GPU access is blocked, upon return, |reason| 56 // If |reason| is not NULL and GPU access is blocked, upon return, |reason|
57 // contains a description of the reason why GPU access is blocked. 57 // contains a description of the reason why GPU access is blocked.
58 virtual bool GpuAccessAllowed(std::string* reason) const = 0; 58 virtual bool GpuAccessAllowed(std::string* reason) const = 0;
59 59
60 // Requests complete GPUinfo if it has not already been requested 60 // Requests complete GPUinfo if it has not already been requested
61 virtual void RequestCompleteGpuInfoIfNeeded() = 0; 61 virtual void RequestCompleteGpuInfoIfNeeded() = 0;
62 62
63 virtual bool IsCompleteGpuInfoAvailable() const = 0; 63 // |includes_extra| indicates whether missing DxDiagnostics on Windows
64 // is considered as incomplete; it doesn't make a difference on other
65 // platforms.
66 virtual bool IsCompleteGpuInfoAvailable(bool includes_extra) const = 0;
Evan Stade 2014/09/03 00:48:11 Every time this function is called, it's called wi
Zhenyao Mo 2014/09/03 01:31:23 Done.
64 67
65 // Requests that the GPU process report its current video memory usage stats, 68 // Requests that the GPU process report its current video memory usage stats,
66 // which can be retrieved via the GPU data manager's on-update function. 69 // which can be retrieved via the GPU data manager's on-update function.
67 virtual void RequestVideoMemoryUsageStatsUpdate() const = 0; 70 virtual void RequestVideoMemoryUsageStatsUpdate() const = 0;
68 71
69 // Returns true if SwiftShader should be used. 72 // Returns true if SwiftShader should be used.
70 virtual bool ShouldUseSwiftShader() const = 0; 73 virtual bool ShouldUseSwiftShader() const = 0;
71 74
72 // Register a path to SwiftShader. 75 // Register a path to SwiftShader.
73 virtual void RegisterSwiftShaderPath(const base::FilePath& path) = 0; 76 virtual void RegisterSwiftShaderPath(const base::FilePath& path) = 0;
(...skipping 26 matching lines...) Expand all
100 // Whether the browser compositor can be used. 103 // Whether the browser compositor can be used.
101 virtual bool CanUseGpuBrowserCompositor() const = 0; 104 virtual bool CanUseGpuBrowserCompositor() const = 0;
102 105
103 protected: 106 protected:
104 virtual ~GpuDataManager() {} 107 virtual ~GpuDataManager() {}
105 }; 108 };
106 109
107 }; // namespace content 110 }; // namespace content
108 111
109 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_ 112 #endif // CONTENT_PUBLIC_BROWSER_GPU_DATA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698