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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h

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: third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h b/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h
index 34ad7e5fe9c3819b386e7a0c1fd1943b0819fd42..37e9a2aa8ccd80b7d8233d87191ed293a4d6f530 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h
+++ b/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.h
@@ -216,8 +216,9 @@ class PLATFORM_EXPORT WebGLImageConversion final {
bool flipY,
AlphaOp,
DataFormat sourceFormat,
- unsigned width,
- unsigned height,
+ unsigned sourceImageWidth,
+ unsigned sourceImageHeight,
+ const IntRect& sourceImageSubRectangle,
unsigned sourceUnpackAlignment,
Vector<uint8_t>& data);
@@ -261,8 +262,9 @@ class PLATFORM_EXPORT WebGLImageConversion final {
// GraphicsContext3DImagePacking.cpp.
static bool packPixels(const uint8_t* sourceData,
DataFormat sourceDataFormat,
- unsigned width,
- unsigned height,
+ unsigned sourceDataWidth,
+ unsigned sourceDataHeight,
+ const IntRect& sourceDataSubRectangle,
unsigned sourceUnpackAlignment,
unsigned destinationFormat,
unsigned destinationType,

Powered by Google App Engine
This is Rietveld 408576698