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

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

Issue 1544433002: Replace RE2 import with a dependency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-Added LICENSE and OWNERS file Created 4 years, 12 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
« no previous file with comments | « gpu/command_buffer/service/program_manager.cc ('k') | gpu/config/gpu_info_collector_win.cc » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_control_list.h" 5 #include "gpu/config/gpu_control_list.h"
6 6
7 #include "base/cpu.h" 7 #include "base/cpu.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "base/strings/string_split.h" 11 #include "base/strings/string_split.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
14 #include "base/sys_info.h" 14 #include "base/sys_info.h"
15 #include "gpu/config/gpu_info.h" 15 #include "gpu/config/gpu_info.h"
16 #include "gpu/config/gpu_util.h" 16 #include "gpu/config/gpu_util.h"
17 #include "third_party/re2/re2/re2.h" 17 #include "third_party/re2/src/re2/re2.h"
18 18
19 namespace gpu { 19 namespace gpu {
20 namespace { 20 namespace {
21 21
22 // Break a version string into segments. Return true if each segment is 22 // Break a version string into segments. Return true if each segment is
23 // a valid number, and not all segment is 0. 23 // a valid number, and not all segment is 0.
24 bool ProcessVersionString(const std::string& version_string, 24 bool ProcessVersionString(const std::string& version_string,
25 char splitter, 25 char splitter,
26 std::vector<std::string>* version) { 26 std::vector<std::string>* version) {
27 DCHECK(version); 27 DCHECK(version);
(...skipping 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1580 const std::string& feature_name, int feature_id) { 1580 const std::string& feature_name, int feature_id) {
1581 feature_map_[feature_name] = feature_id; 1581 feature_map_[feature_name] = feature_id;
1582 } 1582 }
1583 1583
1584 void GpuControlList::set_supports_feature_type_all(bool supported) { 1584 void GpuControlList::set_supports_feature_type_all(bool supported) {
1585 supports_feature_type_all_ = supported; 1585 supports_feature_type_all_ = supported;
1586 } 1586 }
1587 1587
1588 } // namespace gpu 1588 } // namespace gpu
1589 1589
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/program_manager.cc ('k') | gpu/config/gpu_info_collector_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698