| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1004 validators_.texture_target.AddValue(GL_TEXTURE_RECTANGLE_ARB); | 1004 validators_.texture_target.AddValue(GL_TEXTURE_RECTANGLE_ARB); |
| 1005 validators_.get_tex_param_target.AddValue(GL_TEXTURE_RECTANGLE_ARB); | 1005 validators_.get_tex_param_target.AddValue(GL_TEXTURE_RECTANGLE_ARB); |
| 1006 validators_.g_l_state.AddValue(GL_TEXTURE_BINDING_RECTANGLE_ARB); | 1006 validators_.g_l_state.AddValue(GL_TEXTURE_BINDING_RECTANGLE_ARB); |
| 1007 } | 1007 } |
| 1008 | 1008 |
| 1009 #if defined(OS_MACOSX) | 1009 #if defined(OS_MACOSX) |
| 1010 if (gl::GetGLImplementation() != gl::kGLImplementationOSMesaGL) { | 1010 if (gl::GetGLImplementation() != gl::kGLImplementationOSMesaGL) { |
| 1011 AddExtensionString("GL_CHROMIUM_ycbcr_420v_image"); | 1011 AddExtensionString("GL_CHROMIUM_ycbcr_420v_image"); |
| 1012 feature_flags_.chromium_image_ycbcr_420v = true; | 1012 feature_flags_.chromium_image_ycbcr_420v = true; |
| 1013 } | 1013 } |
| 1014 | |
| 1015 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_ARM_FAMILY) | |
| 1016 // TODO(dcastagna): Determine this feature at runtime querying minigbm. | |
| 1017 // crbug.com/646148 | |
| 1018 AddExtensionString("GL_CHROMIUM_ycbcr_420v_image"); | |
| 1019 feature_flags_.chromium_image_ycbcr_420v = true; | |
| 1020 #endif | 1014 #endif |
| 1021 | 1015 |
| 1022 if (extensions.Contains("GL_APPLE_ycbcr_422")) { | 1016 if (extensions.Contains("GL_APPLE_ycbcr_422")) { |
| 1023 AddExtensionString("GL_CHROMIUM_ycbcr_422_image"); | 1017 AddExtensionString("GL_CHROMIUM_ycbcr_422_image"); |
| 1024 feature_flags_.chromium_image_ycbcr_422 = true; | 1018 feature_flags_.chromium_image_ycbcr_422 = true; |
| 1025 } | 1019 } |
| 1026 | 1020 |
| 1027 // TODO(gman): Add support for these extensions. | 1021 // TODO(gman): Add support for these extensions. |
| 1028 // GL_OES_depth32 | 1022 // GL_OES_depth32 |
| 1029 | 1023 |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1470 if (pos == std::string::npos) { | 1464 if (pos == std::string::npos) { |
| 1471 extensions_ += (extensions_.empty() ? "" : " ") + str; | 1465 extensions_ += (extensions_.empty() ? "" : " ") + str; |
| 1472 } | 1466 } |
| 1473 } | 1467 } |
| 1474 | 1468 |
| 1475 FeatureInfo::~FeatureInfo() { | 1469 FeatureInfo::~FeatureInfo() { |
| 1476 } | 1470 } |
| 1477 | 1471 |
| 1478 } // namespace gles2 | 1472 } // namespace gles2 |
| 1479 } // namespace gpu | 1473 } // namespace gpu |
| OLD | NEW |