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

Unified Diff: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.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: Added expected 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/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
diff --git a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
index 6fef3c0133ff7fe4e6e0de290554e46b8fe690c5..c5d3059f06c48f5a9fe6e19c407c75cb8e93434f 100644
--- a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
+++ b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
@@ -24,7 +24,7 @@ public:
CanvasRenderingContext* create(ScriptState* scriptState, OffscreenCanvas* canvas, const CanvasContextCreationAttributes& attrs) override
{
- return new OffscreenCanvasRenderingContext2D(canvas, attrs);
+ return new OffscreenCanvasRenderingContext2D(scriptState, canvas, attrs);
}
CanvasRenderingContext::ContextType getContextType() const override
@@ -75,13 +75,14 @@ public:
ImageBitmap* transferToImageBitmap(ExceptionState&) final;
protected:
- OffscreenCanvasRenderingContext2D(OffscreenCanvas*, const CanvasContextCreationAttributes& attrs);
+ OffscreenCanvasRenderingContext2D(ScriptState*, OffscreenCanvas*, const CanvasContextCreationAttributes& attrs);
DECLARE_VIRTUAL_TRACE();
private:
bool m_hasAlpha;
bool m_needsMatrixClipRestore = false;
std::unique_ptr<ImageBuffer> m_imageBuffer;
+ bool m_disableReadingFromCanvas;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698