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

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

Issue 2125023002: Reland "webgl: use immutable texture for the default FBO." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add GL_BGRA8_EXT Created 4 years, 5 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 51e504a6b5b8b58ff6787a9a6f6baed16a05fb07..a5d62cdcddd544fc994247930e2245144a4544fa 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -14378,15 +14378,19 @@ bool GLES2DecoderImpl::ValidateCopyTextureCHROMIUMInternalFormats(
// The destination format should be GL_RGB, or GL_RGBA. GL_ALPHA,
// GL_LUMINANCE, and GL_LUMINANCE_ALPHA are not supported because they are not
// renderable on some platforms.
- bool valid_dest_format = dest_internal_format == GL_RGB ||
- dest_internal_format == GL_RGBA ||
- dest_internal_format == GL_BGRA_EXT;
+ bool valid_dest_format =
+ dest_internal_format == GL_RGB || dest_internal_format == GL_RGBA ||
+ dest_internal_format == GL_RGB8 || dest_internal_format == GL_RGBA8 ||
+ dest_internal_format == GL_BGRA_EXT ||
+ dest_internal_format == GL_BGRA8_EXT;
bool valid_source_format =
source_internal_format == GL_RED || source_internal_format == GL_ALPHA ||
source_internal_format == GL_RGB || source_internal_format == GL_RGBA ||
+ source_internal_format == GL_RGB8 || source_internal_format == GL_RGBA8 ||
source_internal_format == GL_LUMINANCE ||
source_internal_format == GL_LUMINANCE_ALPHA ||
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;
if (!valid_source_format || !valid_dest_format) {

Powered by Google App Engine
This is Rietveld 408576698