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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBuffer.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/ImageBuffer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
index 4f289730705f6e1ee88d339fd7753b281cae0894..26177905e683a33ea831418e08f9a65e678e141d 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
@@ -160,7 +160,7 @@ PassRefPtr<Image> ImageBuffer::newImageSnapshot(AccelerationHint hint) const
RefPtr<SkImage> snapshot = newSkImageSnapshot(hint);
if (!snapshot)
return nullptr;
- return StaticBitmapImage::create(snapshot);
+ return StaticBitmapImage::create(snapshot, true);
Justin Novosad 2016/01/07 17:12:01 Really? An image buffer may be associated with a c
xidachen 2016/01/08 18:07:55 Acknowledged.
}
void ImageBuffer::didDraw(const FloatRect& rect) const

Powered by Google App Engine
This is Rietveld 408576698