Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(842)

Unified Diff: ui/gl/gl_surface_egl.h

Issue 435383002: adds WARP support to Chromium, for Metro mode only, on Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: first round of tryfixes Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/gl/gl_surface_egl.h
diff --git a/ui/gl/gl_surface_egl.h b/ui/gl/gl_surface_egl.h
index 2c0a046b2b52719d0e9484dd11c4b1c2b6212324..f21128abfb8cc7622f1e7e0ab4e5ba2e937ecfe4 100644
--- a/ui/gl/gl_surface_egl.h
+++ b/ui/gl/gl_surface_egl.h
@@ -22,6 +22,13 @@ namespace gfx {
// Get default EGL display for GLSurfaceEGL (differs by platform).
EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay();
+#if defined(OS_WIN)
+// Windows must call eglGetPlatformDisplayEXT to get ANGLE to enable WARP, so
+// we define additional data helpers to provide values for the additional
+// required arguments for that method.
+const EGLint* GetPlatformDefaultEGLNativeDisplayAttributes();
+const EGLenum GetPlatformDefaultEGLNativePlatform();
+#endif
// Interface for EGL surface.
class GL_EXPORT GLSurfaceEGL : public GLSurface {

Powered by Google App Engine
This is Rietveld 408576698