Bug 205604

Summary: [WebGL] Add a pure virtual base class for GraphicsContext3D
Product: WebKit Reporter: Dean Jackson <dino>
Component: New BugsAssignee: Dean Jackson <dino>
Status: RESOLVED FIXED    
Severity: Normal CC: aakash_jain, annulen, cdumez, cmarcelo, darin, don.olmstead, esprehn+autocc, ews-watchlist, graouts, gyuyoung.kim, Hironori.Fujii, kondapallykalyan, luiz, noam, ross.kirsling, ryuan.choi, sam, sergio, webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 205648    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch sam: review+

Description Dean Jackson 2019-12-27 02:08:25 PST
[WebGL] Add a pure virtual base class for GraphicsContext3D
Comment 1 Dean Jackson 2019-12-27 02:22:59 PST
Created attachment 386436 [details]
Patch
Comment 2 Sam Weinig 2019-12-27 12:03:13 PST
I think this would be easier to process if you split the enum renaming into its own change first.

Also, can you remind me, is GraphicsContext3D a generic 3D context that is used for both WebGL and WebGPU? If it's not really generic to anything but an OpenGL/OpenGLES/ANGLE backend, perhaps we should take this opportunity to rename it?
Comment 3 Dean Jackson 2019-12-27 12:24:31 PST
Created attachment 386451 [details]
Patch
Comment 4 Dean Jackson 2019-12-27 13:29:28 PST
(In reply to Sam Weinig from comment #2)
> I think this would be easier to process if you split the enum renaming into
> its own change first.

Agreed (although now extra work!)

> 
> Also, can you remind me, is GraphicsContext3D a generic 3D context that is
> used for both WebGL and WebGPU? If it's not really generic to anything but
> an OpenGL/OpenGLES/ANGLE backend, perhaps we should take this opportunity to
> rename it?

It is just for GLES/WebGL-like things, so maybe it should be called GraphicsContextGL?
Comment 5 Dean Jackson 2019-12-27 13:40:26 PST
Created attachment 386454 [details]
Patch
Comment 6 Dean Jackson 2019-12-27 14:05:17 PST
Created attachment 386456 [details]
Patch
Comment 7 Dean Jackson 2019-12-27 14:29:48 PST
Created attachment 386457 [details]
Patch
Comment 8 Dean Jackson 2019-12-27 16:18:13 PST
Created attachment 386458 [details]
Patch
Comment 9 Dean Jackson 2019-12-28 12:09:30 PST
Created attachment 386473 [details]
Patch
Comment 10 Dean Jackson 2019-12-29 13:43:40 PST
Committed r253939: <https://trac.webkit.org/changeset/253939>
Comment 11 Radar WebKit Bug Importer 2019-12-29 13:44:17 PST
<rdar://problem/58233288>
Comment 12 Aakash Jain 2020-01-03 08:17:10 PST Comment hidden (obsolete)