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: gpu/config/gpu_info_collector.cc

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 | « gpu/config/gpu_info_collector.h ('k') | gpu/config/gpu_info_collector_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_info_collector.cc
===================================================================
--- gpu/config/gpu_info_collector.cc (revision 0)
+++ gpu/config/gpu_info_collector.cc (working copy)
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/gpu/gpu_info_collector.h"
+#include "gpu/config/gpu_info_collector.h"
#include <string>
#include <vector>
@@ -77,9 +77,9 @@
} // namespace anonymous
-namespace gpu_info_collector {
+namespace gpu {
-bool CollectGraphicsInfoGL(content::GPUInfo* gpu_info) {
+bool CollectGraphicsInfoGL(GPUInfo* gpu_info) {
TRACE_EVENT0("startup", "gpu_info_collector::CollectGraphicsInfoGL");
if (!gfx::GLSurface::InitializeOneOff()) {
LOG(ERROR) << "gfx::GLSurface::InitializeOneOff() failed";
@@ -111,8 +111,8 @@
return CollectDriverInfoGL(gpu_info);
}
-void MergeGPUInfoGL(content::GPUInfo* basic_gpu_info,
- const content::GPUInfo& context_gpu_info) {
+void MergeGPUInfoGL(GPUInfo* basic_gpu_info,
+ const GPUInfo& context_gpu_info) {
DCHECK(basic_gpu_info);
basic_gpu_info->gl_renderer = context_gpu_info.gl_renderer;
basic_gpu_info->gl_vendor = context_gpu_info.gl_vendor;
@@ -136,5 +136,5 @@
basic_gpu_info->initialization_time = context_gpu_info.initialization_time;
}
-} // namespace gpu_info_collector
+} // namespace gpu
« no previous file with comments | « gpu/config/gpu_info_collector.h ('k') | gpu/config/gpu_info_collector_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698