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..3d11b4ade5703472e98a88347cafcb1e6594147f 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, hasSingleSecurityOrigin() ? HasSingleSecurityOrigin : NoSingleSecurityOrigin); |
} |
void ImageBuffer::didDraw(const FloatRect& rect) const |
@@ -170,6 +170,11 @@ void ImageBuffer::didDraw(const FloatRect& rect) const |
m_surface->didDraw(rect); |
} |
+bool ImageBuffer::hasSingleSecurityOrigin() const |
+{ |
+ return m_client->hasSingleSecurityOrigin(); |
+} |
+ |
WebLayer* ImageBuffer::platformLayer() const |
{ |
return m_surface->layer(); |