RESOLVED FIXED Bug 233513
GraphicsContextGLOpenGL.cpp contains OpenGL implementation specific and platform specific code
https://bugs.webkit.org/show_bug.cgi?id=233513
Summary GraphicsContextGLOpenGL.cpp contains OpenGL implementation specific and platf...
Kimmo Kinnunen
Reported 2021-11-25 23:16:23 PST
GraphicsContextGLOpenGL.cpp contains OpenGL implementation specific and platform specific code This blocks the task of removing ifdefs from GraphicsContextGLOpenGL.h by means of separating various code paths to separate classes. GraphicsContextGLOpenGL.cpp should contain only "OpenGL" specific code. Currently that code lives in GraphicsContextGLOpenGLCommon.cpp, so GraphicsContextGLOpenGL.cpp should be made empty and then ultimately GraphicsContextGLOpenGLCommon.cpp would be renamed to GraphicsContextGLOpenGL.cpp ANGLE specific code should go into GraphicsContextGLANGLE.cpp Platform specific code should go into platform specific files such as GraphicsContextGLCocoa.cpp and compositor specific files such as GraphicsContextGLTextureMapper.cpp.
Attachments
Patch (29.75 KB, patch)
2021-11-25 23:30 PST, Kimmo Kinnunen
ews-feeder: commit-queue-
Patch (30.22 KB, patch)
2021-11-25 23:54 PST, Kimmo Kinnunen
ews-feeder: commit-queue-
Patch (30.43 KB, patch)
2021-11-26 00:32 PST, Kimmo Kinnunen
ews-feeder: commit-queue-
Patch (30.44 KB, patch)
2021-11-26 00:40 PST, Kimmo Kinnunen
no flags
Kimmo Kinnunen
Comment 1 2021-11-25 23:30:08 PST
Kimmo Kinnunen
Comment 2 2021-11-25 23:54:27 PST
Kimmo Kinnunen
Comment 3 2021-11-26 00:32:12 PST
Kimmo Kinnunen
Comment 4 2021-11-26 00:40:07 PST
Antti Koivisto
Comment 5 2021-11-26 02:56:54 PST
Comment on attachment 445178 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=445178&action=review > Source/WebCore/platform/graphics/opengl/GraphicsContextGLOpenGL.cpp:-67 > -void GraphicsContextGLOpenGL::resetBuffersToAutoClear() > -{ > - GCGLuint buffers = GraphicsContextGL::COLOR_BUFFER_BIT; > - // The GraphicsContextGL's attributes (as opposed to > - // WebGLRenderingContext's) indicate whether there is an > - // implicitly-allocated stencil buffer, for example. > - auto attrs = contextAttributes(); > - if (attrs.depth) > - buffers |= GraphicsContextGL::DEPTH_BUFFER_BIT; > - if (attrs.stencil) > - buffers |= GraphicsContextGL::STENCIL_BUFFER_BIT; > - setBuffersToAutoClear(buffers); > -} > - Might want to comment what happened to this function (and others?) since it doesn't move anywhere mechanically.
EWS
Comment 6 2021-11-26 03:11:40 PST
Committed r286175 (244558@main): <https://commits.webkit.org/244558@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 445178 [details].
Radar WebKit Bug Importer
Comment 7 2021-11-26 03:12:27 PST
Kimmo Kinnunen
Comment 8 2021-11-26 06:36:13 PST
*** Bug 233512 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.