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

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

Issue 2786303002: Add "Supports overlays" information to about:gpu. (Closed)
Patch Set: change to AddBool Created 3 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
« no previous file with comments | « gpu/config/gpu_info.cc ('k') | gpu/ipc/common/gpu_info.mojom » ('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_collector.h" 5 #include "gpu/config/gpu_info_collector.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 if (!context_gpu_info.driver_vendor.empty()) 224 if (!context_gpu_info.driver_vendor.empty())
225 basic_gpu_info->driver_vendor = context_gpu_info.driver_vendor; 225 basic_gpu_info->driver_vendor = context_gpu_info.driver_vendor;
226 if (!context_gpu_info.driver_version.empty()) 226 if (!context_gpu_info.driver_version.empty())
227 basic_gpu_info->driver_version = context_gpu_info.driver_version; 227 basic_gpu_info->driver_version = context_gpu_info.driver_version;
228 228
229 basic_gpu_info->sandboxed = context_gpu_info.sandboxed; 229 basic_gpu_info->sandboxed = context_gpu_info.sandboxed;
230 basic_gpu_info->direct_rendering = context_gpu_info.direct_rendering; 230 basic_gpu_info->direct_rendering = context_gpu_info.direct_rendering;
231 basic_gpu_info->in_process_gpu = context_gpu_info.in_process_gpu; 231 basic_gpu_info->in_process_gpu = context_gpu_info.in_process_gpu;
232 basic_gpu_info->passthrough_cmd_decoder = 232 basic_gpu_info->passthrough_cmd_decoder =
233 context_gpu_info.passthrough_cmd_decoder; 233 context_gpu_info.passthrough_cmd_decoder;
234 basic_gpu_info->supports_overlays = context_gpu_info.supports_overlays;
234 basic_gpu_info->context_info_state = context_gpu_info.context_info_state; 235 basic_gpu_info->context_info_state = context_gpu_info.context_info_state;
235 basic_gpu_info->initialization_time = context_gpu_info.initialization_time; 236 basic_gpu_info->initialization_time = context_gpu_info.initialization_time;
236 basic_gpu_info->video_decode_accelerator_capabilities = 237 basic_gpu_info->video_decode_accelerator_capabilities =
237 context_gpu_info.video_decode_accelerator_capabilities; 238 context_gpu_info.video_decode_accelerator_capabilities;
238 basic_gpu_info->video_encode_accelerator_supported_profiles = 239 basic_gpu_info->video_encode_accelerator_supported_profiles =
239 context_gpu_info.video_encode_accelerator_supported_profiles; 240 context_gpu_info.video_encode_accelerator_supported_profiles;
240 basic_gpu_info->jpeg_decode_accelerator_supported = 241 basic_gpu_info->jpeg_decode_accelerator_supported =
241 context_gpu_info.jpeg_decode_accelerator_supported; 242 context_gpu_info.jpeg_decode_accelerator_supported;
242 243
243 #if defined(USE_X11) && !defined(OS_CHROMEOS) 244 #if defined(USE_X11) && !defined(OS_CHROMEOS)
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 } 339 }
339 340
340 gpu_info->optimus = system_info->isOptimus; 341 gpu_info->optimus = system_info->isOptimus;
341 gpu_info->amd_switchable = system_info->isAMDSwitchable; 342 gpu_info->amd_switchable = system_info->isAMDSwitchable;
342 343
343 gpu_info->machine_model_name = system_info->machineModelName; 344 gpu_info->machine_model_name = system_info->machineModelName;
344 gpu_info->machine_model_version = system_info->machineModelVersion; 345 gpu_info->machine_model_version = system_info->machineModelVersion;
345 } 346 }
346 347
347 } // namespace gpu 348 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/config/gpu_info.cc ('k') | gpu/ipc/common/gpu_info.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698