Skip to content

Commit 6d33b1c

Browse files
committed
Unreviewed build fix after 289197@main
https://bugs.webkit.org/show_bug.cgi?id=286326 rdar://143348780 * Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.mm: (WebCore::initializeEGLDisplay): Canonical link: https://commits.webkit.org/289209@main
1 parent 8a00dcf commit 6d33b1c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/WebCore/platform/graphics/cocoa/GraphicsContextGLCocoa.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static EGLDisplay initializeEGLDisplay(const GraphicsContextGLAttributes& attrs)
124124
}
125125
#if PLATFORM(MAC)
126126
else if (attrs.windowGPUID) {
127-
ASSERT(contains(clientExtensions, "EGL_ANGLE_platform_angle_device_id"_span));
127+
ASSERT(WTF::contains(clientExtensions, "EGL_ANGLE_platform_angle_device_id"_span));
128128
// If the power preference is default, use the GPU the context window is on.
129129
// If the power preference is low power, and we know which GPU the context window is on,
130130
// most likely the lowest power is the GPU that drives the context window, as that GPU
@@ -136,7 +136,7 @@ static EGLDisplay initializeEGLDisplay(const GraphicsContextGLAttributes& attrs)
136136
displayAttributes.append(static_cast<EGLAttrib>(attrs.windowGPUID));
137137
}
138138
#endif
139-
ASSERT(contains(clientExtensions, "EGL_ANGLE_feature_control"_span));
139+
ASSERT(WTF::contains(clientExtensions, "EGL_ANGLE_feature_control"_span));
140140
displayAttributes.append(EGL_FEATURE_OVERRIDES_DISABLED_ANGLE);
141141
displayAttributes.append(reinterpret_cast<EGLAttrib>(disabledANGLEMetalFeatures));
142142
displayAttributes.append(EGL_NONE);
@@ -152,7 +152,7 @@ static EGLDisplay initializeEGLDisplay(const GraphicsContextGLAttributes& attrs)
152152

153153
#if ASSERT_ENABLED && ENABLE(WEBXR)
154154
auto displayExtensions = span8(EGL_QueryString(display, EGL_EXTENSIONS));
155-
ASSERT(contains(displayExtensions, "EGL_ANGLE_metal_shared_event_sync"_span));
155+
ASSERT(WTF::contains(displayExtensions, "EGL_ANGLE_metal_shared_event_sync"_span));
156156
#endif
157157

158158
return display;

0 commit comments

Comments
 (0)