Summary: | Use an enum class to identify WebGL versions | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dean Jackson <dino> | ||||||||||||||||
Component: | New Bugs | Assignee: | Dean Jackson <dino> | ||||||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||||||
Severity: | Normal | CC: | cdumez, changseok, cmarcelo, esprehn+autocc, ews-watchlist, graouts, gyuyoung.kim, kbr, kondapallykalyan, luiz, sam, webkit-bug-importer | ||||||||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||||||||
Version: | WebKit Nightly Build | ||||||||||||||||||
Hardware: | Unspecified | ||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||
Attachments: |
|
Description
Dean Jackson
2020-12-22 12:35:34 PST
Created attachment 416681 [details]
Patch
Comment on attachment 416681 [details]
Patch
Looks good to me. r+
Comment on attachment 416681 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=416681&action=review r=me Out of interest, why does the platform level GraphicsContext need to know which version of WebGL is being used? > Source/WebCore/html/HTMLCanvasElement.cpp:338 > + return getContextWebGL(HTMLCanvasElement::toWebGLVersion (type)); Looks like you have an extra space here. Comment on attachment 416681 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=416681&action=review >> Source/WebCore/html/HTMLCanvasElement.cpp:338 >> + return getContextWebGL(HTMLCanvasElement::toWebGLVersion (type)); > > Looks like you have an extra space here. Fixed. (In reply to Sam Weinig from comment #4) > Comment on attachment 416681 [details] > Out of interest, why does the platform level GraphicsContext need to know > which version of WebGL is being used? There are a number of places in the GL API that differ between GLES 2 and 3, or rather need to do different things based on the underlying API. I guess this flag should reflect that rather than WebGL versions. Created attachment 416685 [details]
EWS test
Created attachment 416686 [details]
EWS test 2
Created attachment 416688 [details]
EWS test 3
Created attachment 416690 [details]
EWS test 4
Not my day with the non-Apple ports :) Created attachment 416691 [details]
EWS test 5
Created attachment 416693 [details]
EWS test 6
Committed r271065: <https://trac.webkit.org/changeset/271065> |