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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp

Issue 1532473002: Add a origin clean flag in ImageBitmap class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: StaticBitmapImage now has a second parameter for origin clean flag Created 4 years, 11 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/ImageBufferSurface.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp
index 9bf60796d027bd4089bce72b1922b06ad77deb16..1d1ad3629e5a18e13a43d23549667c7b95ad8a0e 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.cpp
@@ -74,7 +74,7 @@ void ImageBufferSurface::draw(GraphicsContext& context, const FloatRect& destRec
if (!snapshot)
return;
- RefPtr<Image> image = StaticBitmapImage::create(snapshot.release());
+ RefPtr<Image> image = StaticBitmapImage::create(snapshot.release(), true);
Justin Novosad 2016/01/07 17:12:01 See Rule 10 of the Names section of the style guid
xidachen 2016/01/08 18:07:55 Acknowledged.
context.drawImage(image.get(), destRect, srcRect, op);
}

Powered by Google App Engine
This is Rietveld 408576698