From c92a8994b412c86a605d1d81a947f9a5e03adfc2 Mon Sep 17 00:00:00 2001
From: Arvid Nilsson <anilsson@blackberry.com>
Date: Tue, 12 Nov 2013 13:16:38 +0100
Subject: [PATCH] Delegated renderer: Share context support for QNX

Add code to extract the EGL context on QNX for use as the share context
in the Chromium GPU process/thread. Very similar to the other
platforms.

Change-Id: I54fba69283e984a392c11922da2483ce921ea594
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
---
 lib/content_browser_client_qt.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/content_browser_client_qt.cpp b/lib/content_browser_client_qt.cpp
index 97d5c8e4e..82587bf8d 100644
--- a/lib/content_browser_client_qt.cpp
+++ b/lib/content_browser_client_qt.cpp
@@ -222,6 +222,8 @@ public:
                 m_handle = pni->nativeResourceForContext(QByteArrayLiteral("glxcontext"), qtContext);
         } else if (platform == QStringLiteral("Cocoa"))
             m_handle = pni->nativeResourceForContext(QByteArrayLiteral("cglcontextobj"), qtContext);
+        else if (platform == QStringLiteral("qnx"))
+            m_handle = pni->nativeResourceForContext(QByteArrayLiteral("eglcontext"), qtContext);
         else
             // Add missing platforms once they work.
             Q_UNREACHABLE();
-- 
GitLab