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

Side by Side Diff: gpu/config/gpu_info.cc

Issue 435383002: adds WARP support to Chromium, for Metro mode only, on Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: first round of tryfixes Created 6 years, 4 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 #include "gpu/config/gpu_info.h" 5 #include "gpu/config/gpu_info.h"
6 6
7 namespace { 7 namespace {
8 8
9 void EnumerateGPUDevice(gpu::GPUInfo::Enumerator* enumerator, 9 void EnumerateGPUDevice(gpu::GPUInfo::Enumerator* enumerator,
10 const gpu::GPUInfo::GPUDevice& device) { 10 const gpu::GPUInfo::GPUDevice& device) {
(...skipping 18 matching lines...) Expand all
29 29
30 GPUInfo::GPUDevice::~GPUDevice() { } 30 GPUInfo::GPUDevice::~GPUDevice() { }
31 31
32 GPUInfo::GPUInfo() 32 GPUInfo::GPUInfo()
33 : finalized(false), 33 : finalized(false),
34 optimus(false), 34 optimus(false),
35 amd_switchable(false), 35 amd_switchable(false),
36 lenovo_dcute(false), 36 lenovo_dcute(false),
37 adapter_luid(0), 37 adapter_luid(0),
38 gl_reset_notification_strategy(0), 38 gl_reset_notification_strategy(0),
39 use_warp(false),
39 can_lose_context(false), 40 can_lose_context(false),
40 software_rendering(false), 41 software_rendering(false),
41 direct_rendering(true), 42 direct_rendering(true),
42 sandboxed(false), 43 sandboxed(false),
43 process_crash_count(0) { 44 process_crash_count(0) {
44 } 45 }
45 46
46 GPUInfo::~GPUInfo() { } 47 GPUInfo::~GPUInfo() { }
47 48
48 void GPUInfo::EnumerateFields(Enumerator* enumerator) const { 49 void GPUInfo::EnumerateFields(Enumerator* enumerator) const {
(...skipping 15 matching lines...) Expand all
64 std::string machine_model_name; 65 std::string machine_model_name;
65 std::string machine_model_version; 66 std::string machine_model_version;
66 std::string gl_version_string; 67 std::string gl_version_string;
67 std::string gl_vendor; 68 std::string gl_vendor;
68 std::string gl_renderer; 69 std::string gl_renderer;
69 std::string gl_extensions; 70 std::string gl_extensions;
70 std::string gl_ws_vendor; 71 std::string gl_ws_vendor;
71 std::string gl_ws_version; 72 std::string gl_ws_version;
72 std::string gl_ws_extensions; 73 std::string gl_ws_extensions;
73 uint32 gl_reset_notification_strategy; 74 uint32 gl_reset_notification_strategy;
75 bool use_warp;
74 bool can_lose_context; 76 bool can_lose_context;
75 GpuPerformanceStats performance_stats; 77 GpuPerformanceStats performance_stats;
76 bool software_rendering; 78 bool software_rendering;
77 bool direct_rendering; 79 bool direct_rendering;
78 bool sandboxed; 80 bool sandboxed;
79 int process_crash_count; 81 int process_crash_count;
80 #if defined(OS_WIN) 82 #if defined(OS_WIN)
81 DxDiagNode dx_diagnostics; 83 DxDiagNode dx_diagnostics;
82 #endif 84 #endif
83 }; 85 };
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 enumerator->AddString("glVersion", gl_version); 119 enumerator->AddString("glVersion", gl_version);
118 enumerator->AddString("glVendor", gl_vendor); 120 enumerator->AddString("glVendor", gl_vendor);
119 enumerator->AddString("glRenderer", gl_renderer); 121 enumerator->AddString("glRenderer", gl_renderer);
120 enumerator->AddString("glExtensions", gl_extensions); 122 enumerator->AddString("glExtensions", gl_extensions);
121 enumerator->AddString("glWsVendor", gl_ws_vendor); 123 enumerator->AddString("glWsVendor", gl_ws_vendor);
122 enumerator->AddString("glWsVersion", gl_ws_version); 124 enumerator->AddString("glWsVersion", gl_ws_version);
123 enumerator->AddString("glWsExtensions", gl_ws_extensions); 125 enumerator->AddString("glWsExtensions", gl_ws_extensions);
124 enumerator->AddInt( 126 enumerator->AddInt(
125 "glResetNotificationStrategy", 127 "glResetNotificationStrategy",
126 static_cast<int>(gl_reset_notification_strategy)); 128 static_cast<int>(gl_reset_notification_strategy));
129 enumerator->AddBool("use_warp", use_warp);
127 enumerator->AddBool("can_lose_context", can_lose_context); 130 enumerator->AddBool("can_lose_context", can_lose_context);
128 // TODO(kbr): add performance_stats. 131 // TODO(kbr): add performance_stats.
129 enumerator->AddBool("softwareRendering", software_rendering); 132 enumerator->AddBool("softwareRendering", software_rendering);
130 enumerator->AddBool("directRendering", direct_rendering); 133 enumerator->AddBool("directRendering", direct_rendering);
131 enumerator->AddBool("sandboxed", sandboxed); 134 enumerator->AddBool("sandboxed", sandboxed);
132 enumerator->AddInt("processCrashCount", process_crash_count); 135 enumerator->AddInt("processCrashCount", process_crash_count);
133 // TODO(kbr): add dx_diagnostics on Windows. 136 // TODO(kbr): add dx_diagnostics on Windows.
134 enumerator->EndAuxAttributes(); 137 enumerator->EndAuxAttributes();
135 } 138 }
136 139
137 } // namespace gpu 140 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698