Bug 1859625 Part 4: Do feature support for OPENGL_COMPOSITING in InitOpenGLConfig...
commitd06c9ec44b545e4ab026dbbfe584b459843cc29b
authorBrad Werth <bwerth@mozilla.com>
Mon, 27 Nov 2023 21:11:11 +0000 (27 21:11 +0000)
committerBrad Werth <bwerth@mozilla.com>
Mon, 27 Nov 2023 21:11:11 +0000 (27 21:11 +0000)
treed27e8d959e53bd37c18cd7616afe06a5d8bea08b
parentcb5944eb4ca490012e496d678852589ecfe313f7
Bug 1859625 Part 4: Do feature support for OPENGL_COMPOSITING in InitOpenGLConfig. r=jgilbert

This feature needs to have defaults set before user force enables are
processed. Before this change, both ImportContentDeviceData and
InitOpenGLConfig potentially could do both defaults and user setting,
making it an error if both functions are called (in either order). This
change makes it so that InitOpenGLConfig is solely responsible for
setting defaults and user force enable for this feature. This change
prevents the content process from inheriting parent process data
available in ImportContentDeviceData, but as long as InitOpenGLConfig
fully configures the feature and makes the right decision, that doesn't
matter.

Differential Revision: https://phabricator.services.mozilla.com/D194436
gfx/thebes/gfxPlatform.cpp