| Index: third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp b/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp
|
| index e9eee504a9d39d6a1066424f069df9247bd2fbd3..a12ac2445e45a64296c6706fd4001087968f5185 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp
|
| @@ -2313,6 +2313,7 @@ bool WebGLImageConversion::packImageData(
|
|
|
| bool WebGLImageConversion::extractImageData(
|
| const uint8_t* imageData,
|
| + DataFormat sourceDataFormat,
|
| const IntSize& imageDataSize,
|
| GLenum format,
|
| GLenum type,
|
| @@ -2333,7 +2334,7 @@ bool WebGLImageConversion::extractImageData(
|
| return false;
|
| data.resize(packedSize);
|
|
|
| - if (!packPixels(imageData, DataFormatRGBA8, width, height, 0, format, type, premultiplyAlpha ? AlphaDoPremultiply : AlphaDoNothing, data.data(), flipY))
|
| + if (!packPixels(imageData, sourceDataFormat, width, height, 0, format, type, premultiplyAlpha ? AlphaDoPremultiply : AlphaDoNothing, data.data(), flipY))
|
| return false;
|
|
|
| return true;
|
|
|