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

Unified Diff: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h

Issue 1881563003: Implement OffscreenCanvas.getContext('webgl') (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and remove static_cast 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/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 f217cdf05945f1c3155e7db62db4fb548219f88a..1db409c741ce1a55017507de1e6ac80c65c8c474 100644
--- a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
+++ b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h
@@ -12,8 +12,6 @@
namespace blink {
-class HTMLCanvasElement;
-
class MODULES_EXPORT OffscreenCanvasRenderingContext2D final : public CanvasRenderingContext, public BaseRenderingContext2D {
DEFINE_WRAPPERTYPEINFO();
USING_GARBAGE_COLLECTED_MIXIN(OffscreenCanvasRenderingContext2D);
@@ -23,7 +21,7 @@ public:
Factory() {}
~Factory() override {}
- CanvasRenderingContext* create(OffscreenCanvas* canvas, const CanvasContextCreationAttributes& attrs) override
+ CanvasRenderingContext* create(ScriptState* scriptState, OffscreenCanvas* canvas, const CanvasContextCreationAttributes& attrs) override
{
return new OffscreenCanvasRenderingContext2D(canvas, attrs);
}
@@ -38,6 +36,7 @@ public:
~OffscreenCanvasRenderingContext2D() override;
ContextType getContextType() const override { return Context2d; }
bool is2d() const override { return true; }
+ void setOffscreenCanvasGetContextResult(OffscreenRenderingContext&) final;
void setIsHidden(bool) final { ASSERT_NOT_REACHED(); }
void stop() final { ASSERT_NOT_REACHED(); }
void setCanvasGetContextResult(RenderingContext&) final {}

Powered by Google App Engine
This is Rietveld 408576698