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

Unified Diff: content/gpu/gpu_info_collector_mac.mm

Issue 11574049: Only collect GL/D3D context specific GPUInfo in GPU process (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/gpu/gpu_info_collector_linux.cc ('k') | content/gpu/gpu_info_collector_unittest_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_info_collector_mac.mm
===================================================================
--- content/gpu/gpu_info_collector_mac.mm (revision 173244)
+++ content/gpu/gpu_info_collector_mac.mm (working copy)
@@ -158,9 +158,8 @@
namespace gpu_info_collector {
-bool CollectGraphicsInfo(content::GPUInfo* gpu_info) {
+bool CollectContextGraphicsInfo(content::GPUInfo* gpu_info) {
DCHECK(gpu_info);
- *gpu_info = content::GPUInfo();
TRACE_EVENT0("gpu", "gpu_info_collector::CollectGraphicsInfo");
@@ -170,7 +169,7 @@
return CollectGraphicsInfoGL(gpu_info);
}
-bool CollectPreliminaryGraphicsInfo(content::GPUInfo* gpu_info) {
+bool CollectBasicGraphicsInfo(content::GPUInfo* gpu_info) {
DCHECK(gpu_info);
std::string model_name;
@@ -184,10 +183,6 @@
return CollectPCIVideoCardInfo(gpu_info);
}
-bool CollectVideoCardInfo(content::GPUInfo* gpu_info) {
- return CollectPreliminaryGraphicsInfo(gpu_info);
-}
-
bool CollectDriverInfoGL(content::GPUInfo* gpu_info) {
DCHECK(gpu_info);
@@ -203,4 +198,9 @@
return true;
}
+void MergeGPUInfo(content::GPUInfo* basic_gpu_info,
+ const content::GPUInfo& context_gpu_info) {
+ MergeGPUInfoGL(basic_gpu_info, context_gpu_info);
+}
+
} // namespace gpu_info_collector
« no previous file with comments | « content/gpu/gpu_info_collector_linux.cc ('k') | content/gpu/gpu_info_collector_unittest_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698