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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 396 |
397 if (ext.HaveAndDesire("GL_CHROMIUM_front_buffer_cached")) { | 397 if (ext.HaveAndDesire("GL_CHROMIUM_front_buffer_cached")) { |
398 AddExtensionString("GL_CHROMIUM_front_buffer_cached"); | 398 AddExtensionString("GL_CHROMIUM_front_buffer_cached"); |
399 } | 399 } |
| 400 |
| 401 if (ext.Desire("GL_ANGLE_pack_reverse_row_order") && |
| 402 ext.Have("GL_ANGLE_pack_reverse_row_order")) { |
| 403 AddExtensionString("GL_ANGLE_pack_reverse_row_order"); |
| 404 feature_flags_.angle_pack_reverse_row_order = true; |
| 405 validators_.pixel_store.AddValue(GL_PACK_REVERSE_ROW_ORDER_ANGLE); |
| 406 validators_.g_l_state.AddValue(GL_PACK_REVERSE_ROW_ORDER_ANGLE); |
| 407 } |
400 } | 408 } |
401 | 409 |
402 void FeatureInfo::AddExtensionString(const std::string& str) { | 410 void FeatureInfo::AddExtensionString(const std::string& str) { |
403 if (extensions_.find(str) == std::string::npos) { | 411 if (extensions_.find(str) == std::string::npos) { |
404 extensions_ += (extensions_.empty() ? "" : " ") + str; | 412 extensions_ += (extensions_.empty() ? "" : " ") + str; |
405 } | 413 } |
406 } | 414 } |
407 | 415 |
408 } // namespace gles2 | 416 } // namespace gles2 |
409 } // namespace gpu | 417 } // namespace gpu |
OLD | NEW |