Summary: | Implement OffscreenCanvas.getContext("webgl") | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dean Jackson <dino> | ||||
Component: | Canvas | Assignee: | Dean Jackson <dino> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | cdumez, dino, esprehn+autocc, ews-watchlist, graouts, gyuyoung.kim, hi, joepeck, kondapallykalyan, sam, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Dean Jackson
2017-11-27 13:04:45 PST
Created attachment 327666 [details]
Patch
Comment on attachment 327666 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=327666&action=review > Source/WebCore/html/OffscreenCanvas.cpp:81 > + if (m_context) > + return { RefPtr<WebGLRenderingContext> { &downcast<WebGLRenderingContext>(*m_context) } }; I think this should only return m_context if contextType == RenderingContextType::Webgl. Otherwise, it should be nullptr. Committed r225193: <https://trac.webkit.org/changeset/225193> |