| Index: ui/gl/test/gl_surface_test_support.cc
|
| diff --git a/ui/gl/test/gl_surface_test_support.cc b/ui/gl/test/gl_surface_test_support.cc
|
| index aae8fd79d497a7cdfb111c3d4ef8f5184761b0eb..6bd4fd9c65f81bcbadb89675820b11c7b308f50b 100644
|
| --- a/ui/gl/test/gl_surface_test_support.cc
|
| +++ b/ui/gl/test/gl_surface_test_support.cc
|
| @@ -19,6 +19,10 @@
|
| #include "ui/platform_window/x11/x11_window.h"
|
| #endif
|
|
|
| +#if defined(USE_OZONE)
|
| +#include "ui/ozone/public/ozone_platform.h"
|
| +#endif
|
| +
|
| namespace gl {
|
|
|
| // static
|
| @@ -67,6 +71,11 @@ void GLSurfaceTestSupport::InitializeOneOff() {
|
| void GLSurfaceTestSupport::InitializeOneOffImplementation(
|
| GLImplementation impl,
|
| bool fallback_to_osmesa) {
|
| +#if defined(USE_OZONE)
|
| + // This function skips where Ozone is otherwise initialized in some tests.
|
| + ui::OzonePlatform::InitializeForGPU();
|
| +#endif
|
| +
|
| DCHECK(!base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kUseGL))
|
| << "kUseGL has not effect in tests";
|
|
|
|
|