summaryrefslogtreecommitdiffstats
path: root/src/core/gl_surface_qt.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-04-06 14:03:04 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-04-07 07:49:31 +0000
commitd7f3899aa3f29ff26932e2258c349317d42f2d78 (patch)
tree5b974fbba740733a725476464495027c6d4eabea /src/core/gl_surface_qt.cpp
parent6f27e202727b45db8a204d29f17db86a069fb6f3 (diff)
Fix Windows ANGLE builds
Move implementation of DirectCompositionSurfaceWin::IsHDRSupported() so OpenGL definitions doesn't conflict. Change-Id: Ib5d61b647b9a6ca00e8f9dae2dffb8cb72fa09c0 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/core/gl_surface_qt.cpp')
-rw-r--r--src/core/gl_surface_qt.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/gl_surface_qt.cpp b/src/core/gl_surface_qt.cpp
index b41ce1d29..abe0ed5d3 100644
--- a/src/core/gl_surface_qt.cpp
+++ b/src/core/gl_surface_qt.cpp
@@ -61,6 +61,8 @@
#if defined(OS_WIN)
#include "ozone/gl_surface_wgl_qt.h"
+
+#include "gpu/ipc/service/direct_composition_surface_win.h"
#include "ui/gl/gl_context_wgl.h"
#include "ui/gl/vsync_provider_win.h"
#endif
@@ -235,6 +237,12 @@ scoped_refptr<gl::GLSurface> ImageTransportSurface::CreateNativeSurface(base::We
QT_NOT_USED
return scoped_refptr<gl::GLSurface>();
}
-}
+
+#if defined(OS_WIN)
+bool DirectCompositionSurfaceWin::IsHDRSupported()
+{ return false; }
+#endif
+
+} // namespace gpu
#endif // !defined(OS_MACOSX)