OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <set> | 5 #include <set> |
6 #include <string> | 6 #include <string> |
7 #include "gpu/command_buffer/service/feature_info.h" | 7 #include "gpu/command_buffer/service/feature_info.h" |
8 #include "gpu/command_buffer/service/gl_utils.h" | 8 #include "gpu/command_buffer/service/gl_utils.h" |
9 #include "ui/gfx/gl/gl_context.h" | 9 #include "ui/gfx/gl/gl_context.h" |
10 #include "ui/gfx/gl/gl_implementation.h" | 10 #include "ui/gfx/gl/gl_implementation.h" |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 // GL_OES_element_index_uint | 386 // GL_OES_element_index_uint |
387 | 387 |
388 feature_flags_.enable_texture_float_linear = enable_texture_float_linear; | 388 feature_flags_.enable_texture_float_linear = enable_texture_float_linear; |
389 feature_flags_.enable_texture_half_float_linear = | 389 feature_flags_.enable_texture_half_float_linear = |
390 enable_texture_half_float_linear; | 390 enable_texture_half_float_linear; |
391 feature_flags_.npot_ok = npot_ok; | 391 feature_flags_.npot_ok = npot_ok; |
392 | 392 |
393 if (ext.HaveAndDesire("GL_CHROMIUM_post_sub_buffer")) { | 393 if (ext.HaveAndDesire("GL_CHROMIUM_post_sub_buffer")) { |
394 AddExtensionString("GL_CHROMIUM_post_sub_buffer"); | 394 AddExtensionString("GL_CHROMIUM_post_sub_buffer"); |
395 } | 395 } |
| 396 |
| 397 if (ext.HaveAndDesire("GL_CHROMIUM_front_buffer_cached")) { |
| 398 AddExtensionString("GL_CHROMIUM_front_buffer_cached"); |
| 399 } |
396 } | 400 } |
397 | 401 |
398 void FeatureInfo::AddExtensionString(const std::string& str) { | 402 void FeatureInfo::AddExtensionString(const std::string& str) { |
399 if (extensions_.find(str) == std::string::npos) { | 403 if (extensions_.find(str) == std::string::npos) { |
400 extensions_ += (extensions_.empty() ? "" : " ") + str; | 404 extensions_ += (extensions_.empty() ? "" : " ") + str; |
401 } | 405 } |
402 } | 406 } |
403 | 407 |
404 } // namespace gles2 | 408 } // namespace gles2 |
405 } // namespace gpu | 409 } // namespace gpu |
OLD | NEW |