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

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

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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
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/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 13 matching lines...) Expand all
24 struct FormatInfo { 24 struct FormatInfo {
25 GLenum format; 25 GLenum format;
26 const GLenum* types; 26 const GLenum* types;
27 size_t count; 27 size_t count;
28 }; 28 };
29 29
30 class StringSet { 30 class StringSet {
31 public: 31 public:
32 StringSet() {} 32 StringSet() {}
33 33
34 StringSet(const char* s) { 34 explicit StringSet(const char* s) {
35 Init(s); 35 Init(s);
36 } 36 }
37 37
38 StringSet(const std::string& str) { 38 explicit StringSet(const std::string& str) {
39 Init(str); 39 Init(str);
40 } 40 }
41 41
42 void Init(const char* s) { 42 void Init(const char* s) {
43 std::string str(s ? s : ""); 43 std::string str(s ? s : "");
44 Init(str); 44 Init(str);
45 } 45 }
46 46
47 void Init(const std::string& str) { 47 void Init(const std::string& str) {
48 std::vector<std::string> tokens; 48 std::vector<std::string> tokens;
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 if (extensions_.find(str) == std::string::npos) { 709 if (extensions_.find(str) == std::string::npos) {
710 extensions_ += (extensions_.empty() ? "" : " ") + str; 710 extensions_ += (extensions_.empty() ? "" : " ") + str;
711 } 711 }
712 } 712 }
713 713
714 FeatureInfo::~FeatureInfo() { 714 FeatureInfo::~FeatureInfo() {
715 } 715 }
716 716
717 } // namespace gles2 717 } // namespace gles2
718 } // namespace gpu 718 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/buffer_manager.h ('k') | gpu/tools/compositor_model_bench/forward_render_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698