Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: gpu/command_buffer/service/feature_info.cc

Issue 1419733005: gpu: Add YCbCr 420v extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually enable/disable capabilities. Typo. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | ui/gl/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 map_buffer_range(false), 164 map_buffer_range(false),
165 ext_discard_framebuffer(false), 165 ext_discard_framebuffer(false),
166 angle_depth_texture(false), 166 angle_depth_texture(false),
167 is_swiftshader(false), 167 is_swiftshader(false),
168 angle_texture_usage(false), 168 angle_texture_usage(false),
169 ext_texture_storage(false), 169 ext_texture_storage(false),
170 chromium_path_rendering(false), 170 chromium_path_rendering(false),
171 blend_equation_advanced(false), 171 blend_equation_advanced(false),
172 blend_equation_advanced_coherent(false), 172 blend_equation_advanced_coherent(false),
173 ext_texture_rg(false), 173 ext_texture_rg(false),
174 chromium_image_ycbcr_420v(false),
174 chromium_image_ycbcr_422(false), 175 chromium_image_ycbcr_422(false),
175 enable_subscribe_uniform(false), 176 enable_subscribe_uniform(false),
176 emulate_primitive_restart_fixed_index(false), 177 emulate_primitive_restart_fixed_index(false),
177 ext_render_buffer_format_bgra8888(false), 178 ext_render_buffer_format_bgra8888(false),
178 ext_multisample_compatibility(false) {} 179 ext_multisample_compatibility(false) {}
179 180
180 FeatureInfo::Workarounds::Workarounds() : 181 FeatureInfo::Workarounds::Workarounds() :
181 #define GPU_OP(type, name) name(false), 182 #define GPU_OP(type, name) name(false),
182 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) 183 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP)
183 #undef GPU_OP 184 #undef GPU_OP
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 // textures via glFramebufferTexture2D, and copy destinations via 897 // textures via glFramebufferTexture2D, and copy destinations via
897 // glCopyPixels. 898 // glCopyPixels.
898 validators_.texture_bind_target.AddValue(GL_TEXTURE_RECTANGLE_ARB); 899 validators_.texture_bind_target.AddValue(GL_TEXTURE_RECTANGLE_ARB);
899 validators_.texture_target.AddValue(GL_TEXTURE_RECTANGLE_ARB); 900 validators_.texture_target.AddValue(GL_TEXTURE_RECTANGLE_ARB);
900 validators_.get_tex_param_target.AddValue(GL_TEXTURE_RECTANGLE_ARB); 901 validators_.get_tex_param_target.AddValue(GL_TEXTURE_RECTANGLE_ARB);
901 validators_.g_l_state.AddValue(GL_TEXTURE_BINDING_RECTANGLE_ARB); 902 validators_.g_l_state.AddValue(GL_TEXTURE_BINDING_RECTANGLE_ARB);
902 } 903 }
903 904
904 #if defined(OS_MACOSX) 905 #if defined(OS_MACOSX)
905 AddExtensionString("GL_CHROMIUM_iosurface"); 906 AddExtensionString("GL_CHROMIUM_iosurface");
907 AddExtensionString("GL_CHROMIUM_ycbcr_420v_image");
908 feature_flags_.chromium_image_ycbcr_420v = true;
906 #endif 909 #endif
907 910
908 if (extensions.Contains("GL_APPLE_ycbcr_422")) { 911 if (extensions.Contains("GL_APPLE_ycbcr_422")) {
909 AddExtensionString("GL_CHROMIUM_ycbcr_422_image"); 912 AddExtensionString("GL_CHROMIUM_ycbcr_422_image");
910 feature_flags_.chromium_image_ycbcr_422 = true; 913 feature_flags_.chromium_image_ycbcr_422 = true;
911 } 914 }
912 915
913 // TODO(gman): Add support for these extensions. 916 // TODO(gman): Add support for these extensions.
914 // GL_OES_depth32 917 // GL_OES_depth32
915 918
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
1297 if (pos == std::string::npos) { 1300 if (pos == std::string::npos) {
1298 extensions_ += (extensions_.empty() ? "" : " ") + str; 1301 extensions_ += (extensions_.empty() ? "" : " ") + str;
1299 } 1302 }
1300 } 1303 }
1301 1304
1302 FeatureInfo::~FeatureInfo() { 1305 FeatureInfo::~FeatureInfo() {
1303 } 1306 }
1304 1307
1305 } // namespace gles2 1308 } // namespace gles2
1306 } // namespace gpu 1309 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | ui/gl/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698