Control Debug layers in ANGLE_platform_angle.
Debug layers seem to be a universal thing among functional back-ends.
D3D, OpenGL and Vulkan all need some kind of controls for debugging,
so it seems to make sense to make this control part of the base
extension.
Default the extension to EGL_DONT_CARE, which allows the back-end to
have a lot of flexibility in terms of implementation.
Also enable the extension in the D3D11 and OpenGL back-ends, and set
the extension to enabled for angle_end2end_tests.
Remove EGLVulkanEXTTest since it no longer tests anything not tested
in the base ANGLETest class.
BUG=angleproject:2086
Change-Id: I52d8170effd1846b9afbe6e4052c699fe5cb0de8
Reviewed-on: https://chromium-review.googlesource.com/578369
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
diff --git a/src/libANGLE/renderer/renderer_utils.h b/src/libANGLE/renderer/renderer_utils.h
index 3817668..ab953a9 100644
--- a/src/libANGLE/renderer/renderer_utils.h
+++ b/src/libANGLE/renderer/renderer_utils.h
@@ -21,13 +21,18 @@
namespace angle
{
struct Format;
-}
+} // namespace angle
namespace gl
{
struct FormatType;
struct InternalFormat;
-}
+} // namespace gl
+
+namespace egl
+{
+class AttributeMap;
+} // namespace egl
namespace rx
{
@@ -182,6 +187,8 @@
using LoadFunctionMap = LoadImageFunctionInfo (*)(GLenum);
+bool ShouldUseDebugLayers(const egl::AttributeMap &attribs);
+
} // namespace rx
#endif // LIBANGLE_RENDERER_RENDERER_UTILS_H_