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

Side by Side Diff: content/gpu/gpu_info_collector_linux.cc

Issue 10392068: ui: Move gl/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac_rel Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/gpu/gpu_info_collector.cc ('k') | content/gpu/gpu_info_collector_mac.mm » ('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 "content/gpu/gpu_info_collector.h" 5 #include "content/gpu/gpu_info_collector.h"
6 6
7 #include <dlfcn.h> 7 #include <dlfcn.h>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/string_piece.h" 14 #include "base/string_piece.h"
15 #include "base/string_split.h" 15 #include "base/string_split.h"
16 #include "base/string_tokenizer.h" 16 #include "base/string_tokenizer.h"
17 #include "base/string_util.h" 17 #include "base/string_util.h"
18 #include "ui/gfx/gl/gl_bindings.h" 18 #include "ui/gl/gl_bindings.h"
19 #include "ui/gfx/gl/gl_context.h" 19 #include "ui/gl/gl_context.h"
20 #include "ui/gfx/gl/gl_implementation.h" 20 #include "ui/gl/gl_implementation.h"
21 #include "ui/gfx/gl/gl_surface.h" 21 #include "ui/gl/gl_surface.h"
22 #include "ui/gfx/gl/gl_switches.h" 22 #include "ui/gl/gl_switches.h"
23 23
24 namespace { 24 namespace {
25 25
26 // PciDevice and PciAccess are defined to access libpci functions. Their 26 // PciDevice and PciAccess are defined to access libpci functions. Their
27 // members match the corresponding structures defined by libpci in size up to 27 // members match the corresponding structures defined by libpci in size up to
28 // fields we may access. For those members we don't use, their names are 28 // fields we may access. For those members we don't use, their names are
29 // defined as "fieldX", etc., or, left out if they are declared after the 29 // defined as "fieldX", etc., or, left out if they are declared after the
30 // members we care about in libpci. 30 // members we care about in libpci.
31 31
32 struct PciDevice { 32 struct PciDevice {
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 return false; 324 return false;
325 if (pos != std::string::npos) 325 if (pos != std::string::npos)
326 driver_version = driver_version.substr(0, pos); 326 driver_version = driver_version.substr(0, pos);
327 327
328 gpu_info->driver_vendor = pieces[1]; 328 gpu_info->driver_vendor = pieces[1];
329 gpu_info->driver_version = driver_version; 329 gpu_info->driver_version = driver_version;
330 return true; 330 return true;
331 } 331 }
332 332
333 } // namespace gpu_info_collector 333 } // namespace gpu_info_collector
OLDNEW
« no previous file with comments | « content/gpu/gpu_info_collector.cc ('k') | content/gpu/gpu_info_collector_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698