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

Unified Diff: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp

Issue 1928043002: Add drawImage() originClean() getSecurityOrigin() to OffscreenCanvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: drawImage API added to interface listing Created 4 years, 8 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/offscreencanvas/OffscreenCanvas.cpp
diff --git a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
index b29be4df2562f67099e7aa9968280a82a549d3fe..b10144a195422c117d117f691c8dd3a1c6ae0776 100644
--- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
+++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp
@@ -14,6 +14,7 @@ namespace blink {
OffscreenCanvas::OffscreenCanvas(const IntSize& size)
: m_size(size)
+ , m_originClean(true)
{
}
@@ -102,6 +103,13 @@ void OffscreenCanvas::registerRenderingContextFactory(PassOwnPtr<CanvasRendering
renderingContextFactories()[type] = std::move(renderingContextFactory);
}
+bool OffscreenCanvas::originClean() const
+{
+ // TODO(crbug.com/607575): Make Settings accessable in worker and use
+ // disableReadingFromCanvas to determine originClean value.
+ return m_originClean;
+}
+
DEFINE_TRACE(OffscreenCanvas)
{
visitor->trace(m_context);

Powered by Google App Engine
This is Rietveld 408576698