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

Unified Diff: third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasRenderingContextFactory.h

Issue 1881563003: Implement OffscreenCanvas.getContext('webgl') (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: offscreenCanvas.getContext('webgl') crashes on worker 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/offscreencanvas/OffscreenCanvasRenderingContextFactory.h
diff --git a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasRenderingContextFactory.h b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasRenderingContextFactory.h
index 3dd34985d7341518706565bd68ccfa74771e709b..a13ce4e12cb869a1ff13b65e2f830b6b0bac3877 100644
--- a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasRenderingContextFactory.h
+++ b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasRenderingContextFactory.h
@@ -5,6 +5,7 @@
#ifndef OffscreenCanvasRenderingContextFactory_h
#define OffscreenCanvasRenderingContextFactory_h
+#include "bindings/core/v8/ScriptState.h"
#include "wtf/Allocator.h"
#include "wtf/PassRefPtr.h"
@@ -21,7 +22,7 @@ public:
OffscreenCanvasRenderingContextFactory() = default;
virtual ~OffscreenCanvasRenderingContextFactory() { }
- virtual OffscreenCanvasRenderingContext* create(OffscreenCanvas*, const CanvasContextCreationAttributes&) = 0;
+ virtual OffscreenCanvasRenderingContext* create(ScriptState*, OffscreenCanvas*, const CanvasContextCreationAttributes&) = 0;
virtual OffscreenCanvasRenderingContext::ContextType getContextType() const = 0;
virtual void onError(OffscreenCanvas*, const String& error) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698