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

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

Issue 1103403002: gpu: Fix dependency cycle between service_sources and config_sources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: zmo nits Created 5 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
« no previous file with comments | « gpu/config/gpu_switches.cc ('k') | gpu/gpu.gyp » ('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_util.h" 5 #include "gpu/config/gpu_util.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "base/strings/string_split.h" 12 #include "base/strings/string_split.h"
13 #include "gpu/command_buffer/service/gpu_switches.h"
14 #include "gpu/config/gpu_control_list_jsons.h" 13 #include "gpu/config/gpu_control_list_jsons.h"
15 #include "gpu/config/gpu_driver_bug_list.h" 14 #include "gpu/config/gpu_driver_bug_list.h"
16 #include "gpu/config/gpu_info_collector.h" 15 #include "gpu/config/gpu_info_collector.h"
16 #include "gpu/config/gpu_switches.h"
17 #include "ui/gl/gl_switches.h" 17 #include "ui/gl/gl_switches.h"
18 18
19 namespace gpu { 19 namespace gpu {
20 20
21 namespace { 21 namespace {
22 22
23 // Combine the integers into a string, seperated by ','. 23 // Combine the integers into a string, seperated by ','.
24 std::string IntSetToString(const std::set<int>& list) { 24 std::string IntSetToString(const std::set<int>& list) {
25 std::string rt; 25 std::string rt;
26 for (std::set<int>::const_iterator it = list.begin(); 26 for (std::set<int>::const_iterator it = list.begin();
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 IntSetToString(workarounds)); 74 IntSetToString(workarounds));
75 } 75 }
76 } 76 }
77 77
78 void StringToFeatureSet( 78 void StringToFeatureSet(
79 const std::string& str, std::set<int>* feature_set) { 79 const std::string& str, std::set<int>* feature_set) {
80 StringToIntSet(str, feature_set); 80 StringToIntSet(str, feature_set);
81 } 81 }
82 82
83 } // namespace gpu 83 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/config/gpu_switches.cc ('k') | gpu/gpu.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698