| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |