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

Side by Side Diff: gpu/command_buffer/service/feature_info.cc

Issue 2022983003: Roll base to 5e00da80f6adb7082d1c0e88d3274cf87cc43bc5 and tonic to f7acabb8fa6c91124486a41194eac3cd… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 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
« no previous file with comments | « gin/modules/file_module_provider.cc ('k') | gpu/command_buffer/service/gpu_tracer.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) 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/command_buffer/service/feature_info.h" 5 #include "gpu/command_buffer/service/feature_info.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 private: 67 private:
68 std::set<std::string> string_set_; 68 std::set<std::string> string_set_;
69 }; 69 };
70 70
71 // Process a string of wordaround type IDs (seperated by ',') and set up 71 // Process a string of wordaround type IDs (seperated by ',') and set up
72 // the corresponding Workaround flags. 72 // the corresponding Workaround flags.
73 void StringToWorkarounds( 73 void StringToWorkarounds(
74 const std::string& types, FeatureInfo::Workarounds* workarounds) { 74 const std::string& types, FeatureInfo::Workarounds* workarounds) {
75 DCHECK(workarounds); 75 DCHECK(workarounds);
76 std::vector<std::string> pieces; 76 std::vector<std::string> pieces = base::SplitString(
77 base::SplitString(types, ',', &pieces); 77 types, ",", base::KEEP_WHITESPACE, base::SPLIT_WANT_NONEMPTY);
78 for (size_t i = 0; i < pieces.size(); ++i) { 78 for (size_t i = 0; i < pieces.size(); ++i) {
79 int number = 0; 79 int number = 0;
80 bool succeed = base::StringToInt(pieces[i], &number); 80 bool succeed = base::StringToInt(pieces[i], &number);
81 DCHECK(succeed); 81 DCHECK(succeed);
82 switch (number) { 82 switch (number) {
83 #define GPU_OP(type, name) \ 83 #define GPU_OP(type, name) \
84 case gpu::type: \ 84 case gpu::type: \
85 workarounds->name = true; \ 85 workarounds->name = true; \
86 break; 86 break;
87 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) 87 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP)
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 if (pos == std::string::npos) { 1153 if (pos == std::string::npos) {
1154 extensions_ += (extensions_.empty() ? "" : " ") + str; 1154 extensions_ += (extensions_.empty() ? "" : " ") + str;
1155 } 1155 }
1156 } 1156 }
1157 1157
1158 FeatureInfo::~FeatureInfo() { 1158 FeatureInfo::~FeatureInfo() {
1159 } 1159 }
1160 1160
1161 } // namespace gles2 1161 } // namespace gles2
1162 } // namespace gpu 1162 } // namespace gpu
OLDNEW
« no previous file with comments | « gin/modules/file_module_provider.cc ('k') | gpu/command_buffer/service/gpu_tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698