blob: 8be89bd1adb9c805e399f2d76ba3801f7078c99d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Copyright (c) 2006-2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_GPU_GPU_INFO_COLLECTOR_H__
#define CHROME_GPU_GPU_INFO_COLLECTOR_H__
#include <string>
#include "base/basictypes.h"
#include "chrome/common/gpu_info.h"
struct IDirect3D9;
namespace gpu_info_collector {
// Populate variables with necessary graphics card information.
// Returns true on success.
bool CollectGraphicsInfo(GPUInfo& gpu_info);
#if defined(OS_WIN)
// Windows provides two ways of doing graphics so we need two ways of
// collecting info based on what's on a user's machine.
// The selection between the two methods is done in the cc file.
// A D3D argument is passed in for testing purposes
bool CollectGraphicsInfoD3D(IDirect3D9* d3d, GPUInfo& gpu_info);
// The GL version of collecting information
bool CollectGraphicsInfoGL(GPUInfo& gpu_info);
#endif
} // namespace gpu_info_collector
#endif // CHROME_GPU_GPU_INFO_COLLECTOR_H__
|