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

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

Issue 2447623002: Remove ImageObserver::didDraw() (Closed)
Patch Set: Rebawse Created 4 years, 1 month 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 | « third_party/WebKit/Source/platform/graphics/StaticBitmapImage.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/StaticBitmapImage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698