| 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 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1068 // Rectangle textures are used as samplers via glBindTexture, framebuffer | 1068 // Rectangle textures are used as samplers via glBindTexture, framebuffer |
| 1069 // textures via glFramebufferTexture2D, and copy destinations via | 1069 // textures via glFramebufferTexture2D, and copy destinations via |
| 1070 // glCopyPixels. | 1070 // glCopyPixels. |
| 1071 validators_.texture_bind_target.AddValue(GL_TEXTURE_RECTANGLE_ARB); | 1071 validators_.texture_bind_target.AddValue(GL_TEXTURE_RECTANGLE_ARB); |
| 1072 validators_.texture_target.AddValue(GL_TEXTURE_RECTANGLE_ARB); | 1072 validators_.texture_target.AddValue(GL_TEXTURE_RECTANGLE_ARB); |
| 1073 validators_.get_tex_param_target.AddValue(GL_TEXTURE_RECTANGLE_ARB); | 1073 validators_.get_tex_param_target.AddValue(GL_TEXTURE_RECTANGLE_ARB); |
| 1074 validators_.g_l_state.AddValue(GL_TEXTURE_BINDING_RECTANGLE_ARB); | 1074 validators_.g_l_state.AddValue(GL_TEXTURE_BINDING_RECTANGLE_ARB); |
| 1075 } | 1075 } |
| 1076 | 1076 |
| 1077 #if defined(OS_MACOSX) | 1077 #if defined(OS_MACOSX) |
| 1078 // TODO(dcastagna): Determine ycbcr_420v_image on CrOS at runtime |
| 1079 // querying minigbm. crbug.com/646148 |
| 1078 if (gl::GetGLImplementation() != gl::kGLImplementationOSMesaGL) { | 1080 if (gl::GetGLImplementation() != gl::kGLImplementationOSMesaGL) { |
| 1079 AddExtensionString("GL_CHROMIUM_ycbcr_420v_image"); | 1081 AddExtensionString("GL_CHROMIUM_ycbcr_420v_image"); |
| 1080 feature_flags_.chromium_image_ycbcr_420v = true; | 1082 feature_flags_.chromium_image_ycbcr_420v = true; |
| 1081 } | 1083 } |
| 1082 #endif | 1084 #endif |
| 1083 | 1085 |
| 1084 if (extensions.Contains("GL_APPLE_ycbcr_422")) { | 1086 if (extensions.Contains("GL_APPLE_ycbcr_422")) { |
| 1085 AddExtensionString("GL_CHROMIUM_ycbcr_422_image"); | 1087 AddExtensionString("GL_CHROMIUM_ycbcr_422_image"); |
| 1086 feature_flags_.chromium_image_ycbcr_422 = true; | 1088 feature_flags_.chromium_image_ycbcr_422 = true; |
| 1087 } | 1089 } |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1532 if (pos == std::string::npos) { | 1534 if (pos == std::string::npos) { |
| 1533 extensions_ += (extensions_.empty() ? "" : " ") + str; | 1535 extensions_ += (extensions_.empty() ? "" : " ") + str; |
| 1534 } | 1536 } |
| 1535 } | 1537 } |
| 1536 | 1538 |
| 1537 FeatureInfo::~FeatureInfo() { | 1539 FeatureInfo::~FeatureInfo() { |
| 1538 } | 1540 } |
| 1539 | 1541 |
| 1540 } // namespace gles2 | 1542 } // namespace gles2 |
| 1541 } // namespace gpu | 1543 } // namespace gpu |
| OLD | NEW |