Title: [289043] trunk/Source/WebCore
- Revision
- 289043
- Author
- cl...@igalia.com
- Date
- 2022-02-03 05:21:54 -0800 (Thu, 03 Feb 2022)
Log Message
Add specialize type traits to GLContext
https://bugs.webkit.org/show_bug.cgi?id=236076
Reviewed by Alejandro G. Castro.
Make GLContext downcastable.
No new tests, no change in behaviour.
* platform/graphics/GLContext.h:
* platform/graphics/egl/GLContextEGL.h:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (289042 => 289043)
--- trunk/Source/WebCore/ChangeLog 2022-02-03 13:11:01 UTC (rev 289042)
+++ trunk/Source/WebCore/ChangeLog 2022-02-03 13:21:54 UTC (rev 289043)
@@ -1,3 +1,17 @@
+2022-02-03 Chris Lord <cl...@igalia.com>
+
+ Add specialize type traits to GLContext
+ https://bugs.webkit.org/show_bug.cgi?id=236076
+
+ Reviewed by Alejandro G. Castro.
+
+ Make GLContext downcastable.
+
+ No new tests, no change in behaviour.
+
+ * platform/graphics/GLContext.h:
+ * platform/graphics/egl/GLContextEGL.h:
+
2022-02-03 Philippe Normand <pnorm...@igalia.com>
[atspi] missing-braces clang warnings
Modified: trunk/Source/WebCore/platform/graphics/GLContext.h (289042 => 289043)
--- trunk/Source/WebCore/platform/graphics/GLContext.h 2022-02-03 13:11:01 UTC (rev 289042)
+++ trunk/Source/WebCore/platform/graphics/GLContext.h 2022-02-03 13:21:54 UTC (rev 289043)
@@ -121,4 +121,9 @@
} // namespace WebCore
+#define SPECIALIZE_TYPE_TRAITS_GLCONTEXT(ToValueTypeName, predicate) \
+SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::ToValueTypeName) \
+ static bool isType(const WebCore::GLContext& context) { return context.predicate; } \
+SPECIALIZE_TYPE_TRAITS_END()
+
#endif // GLContext_h
Modified: trunk/Source/WebCore/platform/graphics/egl/GLContextEGL.h (289042 => 289043)
--- trunk/Source/WebCore/platform/graphics/egl/GLContextEGL.h 2022-02-03 13:11:01 UTC (rev 289042)
+++ trunk/Source/WebCore/platform/graphics/egl/GLContextEGL.h 2022-02-03 13:21:54 UTC (rev 289043)
@@ -120,4 +120,6 @@
} // namespace WebCore
+SPECIALIZE_TYPE_TRAITS_GLCONTEXT(GLContextEGL, isEGLContext());
+
#endif // USE(EGL)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes