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

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

Issue 2444803002: [Not For Revew] reverse src/dst coordinates if both src and dst coordinates are reversed
Patch Set: suppress the webgl2 conformance expectations Created 4 years, 2 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
« no previous file with comments | « content/test/gpu/gpu_tests/webgl2_conformance_expectations.py ('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/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 bd7bed5278f045b9e79c7fbbed2eba291918d3fc..d53d1cabdccd11691a8e43541c5eedb937695265 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -8070,6 +8070,18 @@ void GLES2DecoderImpl::DoBlitFramebufferCHROMIUM(
}
}
+ if (srcX0 > srcX1 && dstX0 > dstX1) {
+ GLint temp;
+ temp = srcX1, srcX1 = srcX0, srcX0 = temp;
+ temp = dstX1, dstX1 = dstX0, dstX0 = temp;
+ }
+
+ if (srcY0 > srcY1 && dstY0 > dstY1) {
+ GLint temp;
+ temp = srcY1, srcY1 = srcY0, srcY0 = temp;
+ temp = dstY1, dstY1 = dstY0, dstY0 = temp;
+ }
+
bool enable_srgb =
(read_buffer_has_srgb || draw_buffers_has_srgb) &&
((mask & GL_COLOR_BUFFER_BIT) != 0);
« no previous file with comments | « content/test/gpu/gpu_tests/webgl2_conformance_expectations.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698