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

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

Issue 2171563002: Add WorkerSettings to expose certain flag values in WorkerGlobalScope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 4 years, 5 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.h
diff --git a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
index 1bc0896e8fedbc820994f5082d4fc800b6e3de74..2f1f83de9f442ebe1e34a2503f2ede8b039c15c8 100644
--- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
+++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
@@ -46,6 +46,8 @@ public:
bool originClean() const;
void setOriginTainted() { m_originClean = false; }
+ // TODO(crbug.com/630356): apply the flag to WebGL context as well
+ void setDisableReadingFromCanvasTrue() { m_disableReadingFromCanvas = true; }
void setSurfaceId(uint32_t clientId, uint32_t localId, uint64_t nonce)
{
@@ -72,6 +74,7 @@ private:
bool m_isNeutered = false;
bool m_originClean;
+ bool m_disableReadingFromCanvas = false;
// cc::SurfaceId is broken into three integer components as this can be used
// in transfer of OffscreenCanvas across threads
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698