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 be417ea88045214312837f3e4ab0467a1a200b4f..a13f26e72adea0c470ea0d7b7593747073c54a26 100644 |
--- a/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp |
@@ -2914,14 +2914,10 @@ bool WebGLImageConversion::packImageData(Image* image, |
return false; |
data.resize(packedSize); |
- if (!packPixels(reinterpret_cast<const uint8_t*>(pixels), sourceFormat, |
- sourceImageWidth, sourceImageHeight, sourceImageSubRectangle, |
- depth, sourceUnpackAlignment, unpackImageHeight, format, type, |
- alphaOp, data.data(), flipY)) |
- return false; |
- if (ImageObserver* observer = image->getImageObserver()) |
- observer->didDraw(image); |
- return true; |
+ return packPixels( |
+ reinterpret_cast<const uint8_t*>(pixels), sourceFormat, sourceImageWidth, |
+ sourceImageHeight, sourceImageSubRectangle, depth, sourceUnpackAlignment, |
+ unpackImageHeight, format, type, alphaOp, data.data(), flipY); |
} |
bool WebGLImageConversion::extractImageData( |