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/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
10 #include "gpu/command_buffer/service/gl_utils.h" | 10 #include "gpu/command_buffer/service/gl_utils.h" |
11 #include "ui/gfx/gl/gl_context.h" | 11 #include "ui/gfx/gl/gl_context.h" |
12 #include "ui/gfx/gl/gl_implementation.h" | 12 #include "ui/gfx/gl/gl_implementation.h" |
13 #if defined(OS_MACOSX) | 13 #if defined(OS_MACOSX) |
14 #include "ui/gfx/surface/io_surface_support_mac.h" | 14 #include "ui/surface/io_surface_support_mac.h" |
15 #endif | 15 #endif |
16 | 16 |
17 namespace gpu { | 17 namespace gpu { |
18 namespace gles2 { | 18 namespace gles2 { |
19 | 19 |
20 FeatureInfo::FeatureInfo() { | 20 FeatureInfo::FeatureInfo() { |
21 } | 21 } |
22 | 22 |
23 FeatureInfo::~FeatureInfo() { | 23 FeatureInfo::~FeatureInfo() { |
24 } | 24 } |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 } | 467 } |
468 | 468 |
469 void FeatureInfo::AddExtensionString(const std::string& str) { | 469 void FeatureInfo::AddExtensionString(const std::string& str) { |
470 if (extensions_.find(str) == std::string::npos) { | 470 if (extensions_.find(str) == std::string::npos) { |
471 extensions_ += (extensions_.empty() ? "" : " ") + str; | 471 extensions_ += (extensions_.empty() ? "" : " ") + str; |
472 } | 472 } |
473 } | 473 } |
474 | 474 |
475 } // namespace gles2 | 475 } // namespace gles2 |
476 } // namespace gpu | 476 } // namespace gpu |
OLD | NEW |