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

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

Issue 2767063002: 16-bit video upload to float: intermediate R16_EXT and copy to float. (Closed)
Patch Set: update khronos headers Created 3 years, 9 months 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
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 496068d0bc88846a638199415e4c4ef24c495176..cd1a2530c1cceb89c9f5ad6f39b9d60876863995 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -3788,6 +3788,7 @@ Capabilities GLES2DecoderImpl::GetCapabilities() {
caps.blend_equation_advanced_coherent =
feature_info_->feature_flags().blend_equation_advanced_coherent;
caps.texture_rg = feature_info_->feature_flags().ext_texture_rg;
+ caps.texture_norm16 = feature_info_->feature_flags().ext_texture_norm16;
caps.texture_half_float_linear =
feature_info_->feature_flags().enable_texture_half_float_linear;
caps.color_buffer_half_float_rgba =
@@ -16551,6 +16552,7 @@ bool GLES2DecoderImpl::ValidateCopyTextureCHROMIUMInternalFormats(
break;
}
+ // TODO(aleksandar.stojiljkovic): Use sized internal formats: crbug.com/662644
qiankun 2017/04/10 09:43:27 Did you mean supporting sized internal formats for
aleksandar.stojiljkovic 2017/04/11 21:33:26 Thanks, the bug 662644 was wrong - changed it to 6
bool valid_source_format =
source_internal_format == GL_RED || source_internal_format == GL_ALPHA ||
source_internal_format == GL_RGB || source_internal_format == GL_RGBA ||
@@ -16560,7 +16562,8 @@ bool GLES2DecoderImpl::ValidateCopyTextureCHROMIUMInternalFormats(
source_internal_format == GL_BGRA_EXT ||
source_internal_format == GL_BGRA8_EXT ||
source_internal_format == GL_RGB_YCBCR_420V_CHROMIUM ||
- source_internal_format == GL_RGB_YCBCR_422_CHROMIUM;
+ source_internal_format == GL_RGB_YCBCR_422_CHROMIUM ||
+ source_internal_format == GL_R16_EXT;
if (!valid_source_format) {
std::string msg = "invalid source internal format " +
GLES2Util::GetStringEnum(source_internal_format);

Powered by Google App Engine
This is Rietveld 408576698