Commit 6e0d8410 by Frank Henigman Committed by Commit Bot

Add IsOzone().

Add a function to check for the Ozone back end for use in skipping tests. BUG=angleproject:1423 Change-Id: Ida3313e8cce5179422bdca85ba68f9765dfac840 Reviewed-on: https://chromium-review.googlesource.com/469068Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Frank Henigman <fjhenigman@chromium.org>
parent 9aded17c
...@@ -880,6 +880,15 @@ bool IsVulkan() ...@@ -880,6 +880,15 @@ bool IsVulkan()
return (rendererString.find("Vulkan") != std::string::npos); return (rendererString.find("Vulkan") != std::string::npos);
} }
bool IsOzone()
{
#if defined(ANGLE_USE_OZONE)
return true;
#else
return false;
#endif
}
bool IsLinux() bool IsLinux()
{ {
#if defined(ANGLE_PLATFORM_LINUX) #if defined(ANGLE_PLATFORM_LINUX)
......
...@@ -311,6 +311,7 @@ bool IsD3DSM3(); ...@@ -311,6 +311,7 @@ bool IsD3DSM3();
bool IsDesktopOpenGL(); bool IsDesktopOpenGL();
bool IsOpenGLES(); bool IsOpenGLES();
bool IsOpenGL(); bool IsOpenGL();
bool IsOzone();
bool IsNULL(); bool IsNULL();
// Operating systems // Operating systems
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment