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

Side by Side Diff: gpu/config/gpu_info_collector_android.cc

Issue 16632010: Use a direct include of strings headers in extensions/, google_apis/, gpu/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « gpu/config/gpu_info_collector.cc ('k') | gpu/config/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 "gpu/config/gpu_info_collector.h" 5 #include "gpu/config/gpu_info_collector.h"
6 6
7 #include "base/android/build_info.h" 7 #include "base/android/build_info.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "base/string_util.h"
12 #include "base/strings/string_piece.h" 11 #include "base/strings/string_piece.h"
13 #include "base/strings/string_split.h" 12 #include "base/strings/string_split.h"
13 #include "base/strings/string_util.h"
14 14
15 namespace { 15 namespace {
16 16
17 std::string GetDriverVersionFromString(const std::string& version_string) { 17 std::string GetDriverVersionFromString(const std::string& version_string) {
18 // Extract driver version from the second number in a string like: 18 // Extract driver version from the second number in a string like:
19 // "OpenGL ES 2.0 V@6.0 AU@ (CL@2946718)" 19 // "OpenGL ES 2.0 V@6.0 AU@ (CL@2946718)"
20 20
21 // Exclude first "2.0". 21 // Exclude first "2.0".
22 size_t begin = version_string.find_first_of("0123456789"); 22 size_t begin = version_string.find_first_of("0123456789");
23 if (begin == std::string::npos) 23 if (begin == std::string::npos)
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 gpu_info->gl_version_string); 71 gpu_info->gl_version_string);
72 return true; 72 return true;
73 } 73 }
74 74
75 void MergeGPUInfo(GPUInfo* basic_gpu_info, 75 void MergeGPUInfo(GPUInfo* basic_gpu_info,
76 const GPUInfo& context_gpu_info) { 76 const GPUInfo& context_gpu_info) {
77 MergeGPUInfoGL(basic_gpu_info, context_gpu_info); 77 MergeGPUInfoGL(basic_gpu_info, context_gpu_info);
78 } 78 }
79 79
80 } // namespace gpu 80 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/config/gpu_info_collector.cc ('k') | gpu/config/gpu_info_collector_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698