diff options
Diffstat (limited to 'src/core/chromium_gpu_helper.h')
-rw-r--r-- | src/core/chromium_gpu_helper.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/chromium_gpu_helper.h b/src/core/chromium_gpu_helper.h index 285554cc9..00ed5f295 100644 --- a/src/core/chromium_gpu_helper.h +++ b/src/core/chromium_gpu_helper.h @@ -42,6 +42,8 @@ #ifndef CHROMIUM_GPU_HELPER_H #define CHROMIUM_GPU_HELPER_H +#include <QtGlobal> // We need this for the Q_OS_QNX define. + #include "base/callback.h" namespace base { @@ -100,4 +102,18 @@ void AddSyncPointCallbackOnGpuThread(base::MessageLoop *gpuMessageLoop, content: gpu::gles2::Texture* ConsumeTexture(gpu::gles2::MailboxManager *mailboxManager, unsigned target, const gpu::gles2::MailboxName& name); unsigned int service_id(gpu::gles2::Texture *tex); +#ifdef Q_OS_QNX +typedef void* EGLDisplay; +typedef void* EGLStreamKHR; + +struct EGLStreamData { + EGLDisplay egl_display; + EGLStreamKHR egl_str_handle; + + EGLStreamData(): egl_display(NULL), egl_str_handle(NULL) {} +}; + +EGLStreamData eglstream_connect_consumer(gpu::gles2::Texture *tex); +#endif + #endif // CHROMIUM_GPU_HELPER_H |