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

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.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/core/html/canvas/CanvasRenderingContext.h
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
index 88d3e5347bf0f7dddedae3368b41832ef8b1e2c6..315aebe2986aed5ffb94ea6f770e6b60ae623c77 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.h
@@ -73,7 +73,8 @@ public:
virtual bool hasAlpha() const { return true; }
virtual void setIsHidden(bool) = 0;
virtual bool isContextLost() const { return true; }
- virtual void setCanvasGetContextResult(RenderingContext&) = 0;
+ virtual void setCanvasGetContextResult(RenderingContext&) { ASSERT_NOT_REACHED(); };
+ virtual void setOffscreenCanvasGetContextResult(OffscreenRenderingContext&) { ASSERT_NOT_REACHED(); }
// Return true if the content is updated.
virtual bool paintRenderingResultsToCanvas(SourceDrawingBuffer) { return false; }
@@ -126,8 +127,7 @@ public:
virtual ImageBitmap* transferToImageBitmap(ExceptionState&) { return nullptr; }
protected:
- CanvasRenderingContext(HTMLCanvasElement*);
- CanvasRenderingContext(OffscreenCanvas*);
+ CanvasRenderingContext(HTMLCanvasElement* = nullptr, OffscreenCanvas* = nullptr);
DECLARE_VIRTUAL_TRACE();
virtual void stop() = 0;

Powered by Google App Engine
This is Rietveld 408576698