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

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

Issue 1301883002: Revert of base: Remove using:: declaration from version.h header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « gpu/config/gpu_info.h ('k') | gpu/config/gpu_info_collector_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(const gpu::GPUInfo::GPUDevice& device, 9 void EnumerateGPUDevice(const gpu::GPUInfo::GPUDevice& device,
10 gpu::GPUInfo::Enumerator* enumerator) { 10 gpu::GPUInfo::Enumerator* enumerator) {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 76
77 GPUInfo::~GPUInfo() { } 77 GPUInfo::~GPUInfo() { }
78 78
79 void GPUInfo::EnumerateFields(Enumerator* enumerator) const { 79 void GPUInfo::EnumerateFields(Enumerator* enumerator) const {
80 struct GPUInfoKnownFields { 80 struct GPUInfoKnownFields {
81 base::TimeDelta initialization_time; 81 base::TimeDelta initialization_time;
82 bool optimus; 82 bool optimus;
83 bool amd_switchable; 83 bool amd_switchable;
84 bool lenovo_dcute; 84 bool lenovo_dcute;
85 base::Version display_link_version; 85 Version display_link_version;
86 GPUDevice gpu; 86 GPUDevice gpu;
87 std::vector<GPUDevice> secondary_gpus; 87 std::vector<GPUDevice> secondary_gpus;
88 uint64 adapter_luid; 88 uint64 adapter_luid;
89 std::string driver_vendor; 89 std::string driver_vendor;
90 std::string driver_version; 90 std::string driver_version;
91 std::string driver_date; 91 std::string driver_date;
92 std::string pixel_shader_version; 92 std::string pixel_shader_version;
93 std::string vertex_shader_version; 93 std::string vertex_shader_version;
94 std::string max_msaa_samples; 94 std::string max_msaa_samples;
95 std::string machine_model_name; 95 std::string machine_model_name;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 for (const auto& profile : video_decode_accelerator_supported_profiles) 178 for (const auto& profile : video_decode_accelerator_supported_profiles)
179 EnumerateVideoDecodeAcceleratorSupportedProfile(profile, enumerator); 179 EnumerateVideoDecodeAcceleratorSupportedProfile(profile, enumerator);
180 for (const auto& profile : video_encode_accelerator_supported_profiles) 180 for (const auto& profile : video_encode_accelerator_supported_profiles)
181 EnumerateVideoEncodeAcceleratorSupportedProfile(profile, enumerator); 181 EnumerateVideoEncodeAcceleratorSupportedProfile(profile, enumerator);
182 enumerator->AddBool("jpegDecodeAcceleratorSupported", 182 enumerator->AddBool("jpegDecodeAcceleratorSupported",
183 jpeg_decode_accelerator_supported); 183 jpeg_decode_accelerator_supported);
184 enumerator->EndAuxAttributes(); 184 enumerator->EndAuxAttributes();
185 } 185 }
186 186
187 } // namespace gpu 187 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/config/gpu_info.h ('k') | gpu/config/gpu_info_collector_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698