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

Unified Diff: gpu/command_buffer/service/texture_manager.cc

Issue 2458423002: Add supported sized formats by CHROMIUM_ycbcr_420v/422_image (Closed)
Patch Set: remove internal_format hack for Mac OSX Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/texture_manager.cc
diff --git a/gpu/command_buffer/service/texture_manager.cc b/gpu/command_buffer/service/texture_manager.cc
index 7dc90b9397bed0f37f47ef642d23c36730e25ebb..a3136cb6352fadeed2ad9f880212aae2c49dc53d 100644
--- a/gpu/command_buffer/service/texture_manager.cc
+++ b/gpu/command_buffer/service/texture_manager.cc
@@ -316,6 +316,13 @@ bool SizedFormatAvailable(const FeatureInfo* feature_info,
if (immutable)
return true;
+ if ((feature_info->feature_flags().chromium_image_ycbcr_420v &&
+ internal_format == GL_RGB_YCBCR_420V_CHROMIUM) ||
+ (feature_info->feature_flags().chromium_image_ycbcr_422 &&
+ internal_format == GL_RGB_YCBCR_422_CHROMIUM)) {
+ return true;
+ }
+
// TODO(dshwang): check if it's possible to remove
// CHROMIUM_color_buffer_float_rgb. crbug.com/329605
if ((feature_info->feature_flags().chromium_color_buffer_float_rgb &&
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698