summaryrefslogtreecommitdiffstats
path: root/gpu/EGL/eglextchromium.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-16 17:57:36 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-16 17:57:36 +0000
commit86be5d085562b134a353faffe5c737470f0a1788 (patch)
tree5f126b106b49c24711c56c97890e129a3c794e8d /gpu/EGL/eglextchromium.h
parent14055fca73ef88666127f1f9c3b1c62d2ea683f7 (diff)
downloadchromium_src-86be5d085562b134a353faffe5c737470f0a1788.zip
chromium_src-86be5d085562b134a353faffe5c737470f0a1788.tar.gz
chromium_src-86be5d085562b134a353faffe5c737470f0a1788.tar.bz2
Move code around to fix build with system mesa.
BUG=161389 Review URL: https://codereview.chromium.org/11973003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177172 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/EGL/eglextchromium.h')
-rw-r--r--gpu/EGL/eglextchromium.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/gpu/EGL/eglextchromium.h b/gpu/EGL/eglextchromium.h
new file mode 100644
index 0000000..fdde853
--- /dev/null
+++ b/gpu/EGL/eglextchromium.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file contains Chromium-specific EGL extensions declarations.
+
+#ifndef GPU_EGL_EGLEXTCHROMIUM_H_
+#define GPU_EGL_EGLEXTCHROMIUM_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <EGL/eglplatform.h>
+
+/* EGLSyncControlCHROMIUM requires 64-bit uint support */
+#if KHRONOS_SUPPORT_INT64
+#ifndef EGL_CHROMIUM_sync_control
+#define EGL_CHROMIUM_sync_control 1
+typedef khronos_uint64_t EGLuint64CHROMIUM;
+#ifdef EGL_EGLEXT_PROTOTYPES
+EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncValuesCHROMIUM(
+ EGLDisplay dpy, EGLSurface surface, EGLuint64CHROMIUM *ust,
+ EGLuint64CHROMIUM *msc, EGLuint64CHROMIUM *sbc);
+#endif /* EGL_EGLEXT_PROTOTYPES */
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCVALUESCHROMIUMPROC)
+ (EGLDisplay dpy, EGLSurface surface, EGLuint64CHROMIUM *ust,
+ EGLuint64CHROMIUM *msc, EGLuint64CHROMIUM *sbc);
+#endif
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#define // GPU_EGL_EGLEXTCHROMIUM_H_