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

Unified Diff: content/gpu/gpu_info_collector.h

Issue 15745014: Move GPU device/driver info related code from content to gpu. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/gpu/gpu_dx_diagnostics_win.cc ('k') | content/gpu/gpu_info_collector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_info_collector.h
===================================================================
--- content/gpu/gpu_info_collector.h (revision 201645)
+++ content/gpu/gpu_info_collector.h (working copy)
@@ -1,68 +0,0 @@
-// Copyright (c) 2012 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 CONTENT_GPU_GPU_INFO_COLLECTOR_H_
-#define CONTENT_GPU_GPU_INFO_COLLECTOR_H_
-
-#include "base/basictypes.h"
-#include "build/build_config.h"
-#include "content/common/content_export.h"
-#include "content/public/common/gpu_info.h"
-
-namespace gpu_info_collector {
-
-enum GpuIDResult {
- kGpuIDFailure,
- kGpuIDSuccess,
- kGpuIDNotSupported
-};
-
-// Collect GPU vendor_id and device ID.
-CONTENT_EXPORT GpuIDResult CollectGpuID(uint32* vendor_id, uint32* device_id);
-
-// Collects basic GPU info without creating a GL/DirectX context (and without
-// the danger of crashing), including vendor_id and device_id.
-// This is called at browser process startup time.
-// The subset each platform collects may be different.
-CONTENT_EXPORT bool CollectBasicGraphicsInfo(
- content::GPUInfo* gpu_info);
-
-// Create a GL/DirectX context and collect related info.
-// This is called at GPU process startup time.
-// Returns true on success.
-bool CollectContextGraphicsInfo(content::GPUInfo* gpu_info);
-
-#if defined(OS_WIN)
-// Collect the DirectX Disagnostics information about the attached displays.
-bool GetDxDiagnostics(content::DxDiagNode* output);
-#endif // OS_WIN
-
-// Create a GL context and collect GL strings and versions.
-CONTENT_EXPORT bool CollectGraphicsInfoGL(content::GPUInfo* gpu_info);
-
-// Each platform stores the driver version on the GL_VERSION string differently
-bool CollectDriverInfoGL(content::GPUInfo* gpu_info);
-
-// Merge GPUInfo from CollectContextGraphicsInfo into basic GPUInfo.
-// This is platform specific, depending on which info are collected at which
-// stage.
-void MergeGPUInfo(content::GPUInfo* basic_gpu_info,
- const content::GPUInfo& context_gpu_info);
-
-// MergeGPUInfo() when GL driver is used.
-void MergeGPUInfoGL(content::GPUInfo* basic_gpu_info,
- const content::GPUInfo& context_gpu_info);
-
-// Advanced Micro Devices has interesting configurations on laptops were
-// there are two videocards that can alternatively a given process output.
-enum AMDVideoCardType {
- UNKNOWN,
- STANDALONE,
- INTEGRATED,
- SWITCHABLE
-};
-
-} // namespace gpu_info_collector
-
-#endif // CONTENT_GPU_GPU_INFO_COLLECTOR_H_
« no previous file with comments | « content/gpu/gpu_dx_diagnostics_win.cc ('k') | content/gpu/gpu_info_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698