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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 2458943002: Support 2D texture sub-source uploads from HTMLImageElement. (Closed)
Patch Set: Fixed bug in computation of default image sub-rectangle. 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
Index: gpu/command_buffer/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index fdc0727ba1db87352cf5fa39661f25904adcb54f..ab0f104f27d67298dcfe57ccccb1a76385977807 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -2549,6 +2549,7 @@ void GLES2Implementation::TexImage2D(
uint32_t padded_row_size;
uint32_t skip_size;
PixelStoreParams params = GetUnpackParameters(k2D);
+
if (!GLES2Util::ComputeImageDataSizesES3(width, height, 1,
format, type,
params,

Powered by Google App Engine
This is Rietveld 408576698