1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "gpu/config/gpu_info_collector.h"
7 #include "base/logging.h"
11 bool CollectContextGraphicsInfo(GPUInfo
* gpu_info
) {
12 return CollectBasicGraphicsInfo(gpu_info
);
15 GpuIDResult
CollectGpuID(uint32
* vendor_id
, uint32
* device_id
) {
16 DCHECK(vendor_id
&& device_id
);
19 return kGpuIDNotSupported
;
22 bool CollectBasicGraphicsInfo(GPUInfo
* gpu_info
) {
23 gpu_info
->can_lose_context
= false;
27 bool CollectDriverInfoGL(GPUInfo
* gpu_info
) {
32 void MergeGPUInfo(GPUInfo
* basic_gpu_info
,
33 const GPUInfo
& context_gpu_info
) {
34 MergeGPUInfoGL(basic_gpu_info
, context_gpu_info
);
37 } // namespace gpu_info_collector