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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.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/core/frame/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index af21f1c79c620aeba8c189a3efd8fd96de544006..f5c489bd6da4d7d4346b68893205b6537b5e5647 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -640,7 +640,7 @@ PassOwnPtr<DragImage> LocalFrame::paintIntoDragImage(
RefPtr<const SkPicture> recording = pictureBuilder.endRecording();
RefPtr<SkImage> skImage = adoptRef(SkImage::NewFromPicture(recording.get(),
SkISize::Make(paintingRect.width(), paintingRect.height()), nullptr, nullptr));
- RefPtr<Image> image = StaticBitmapImage::create(skImage.release());
+ RefPtr<Image> image = StaticBitmapImage::create(skImage.release(), true);
return DragImage::create(image.get(), shouldRespectImageOrientation, deviceScaleFactor,
InterpolationHigh, opacity);

Powered by Google App Engine
This is Rietveld 408576698