| Index: ui/ozone/platform/egltest/eglplatform_shim.h
|
| diff --git a/ui/ozone/platform/egltest/eglplatform_shim.h b/ui/ozone/platform/egltest/eglplatform_shim.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..33f84a064e1dbafe64ee972e309bd6fdc4f9c3a2
|
| --- /dev/null
|
| +++ b/ui/ozone/platform/egltest/eglplatform_shim.h
|
| @@ -0,0 +1,53 @@
|
| +// Copyright 2014 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.
|
| +
|
| +#ifndef __eglplatform_shim_h_
|
| +#define __eglplatform_shim_h_
|
| +
|
| +#include <EGL/egl.h>
|
| +
|
| +#ifdef __cplusplus
|
| +extern "C" {
|
| +#endif
|
| +
|
| +#define SHIM_EXPORT __attribute__((visibility("default")))
|
| +
|
| +// Simple integral native window identifier.
|
| +// NB: Unlike EGLNativeWindowType, this will be shipped between processes.
|
| +typedef int ShimNativeWindowId;
|
| +#define SHIM_NO_WINDOW_ID ((ShimNativeWindowId)0)
|
| +
|
| +/* QueryString targets */
|
| +#define SHIM_EGL_LIBRARY 0x1001
|
| +#define SHIM_GLES_LIBRARY 0x1002
|
| +
|
| +/* CreateWindow / QueryWindow attributes */
|
| +#define SHIM_WINDOW_WIDTH 0x0001
|
| +#define SHIM_WINDOW_HEIGHT 0x0002
|
| +
|
| +// Query global implementation information.
|
| +SHIM_EXPORT const char* ShimQueryString(int name);
|
| +
|
| +// Init/terminate library.
|
| +SHIM_EXPORT bool ShimInitialize();
|
| +SHIM_EXPORT bool ShimTerminate();
|
| +
|
| +// Create window handle & query window properties (called from browser process).
|
| +SHIM_EXPORT ShimNativeWindowId ShimCreateWindow(const int* attrib_list);
|
| +SHIM_EXPORT bool ShimQueryWindow(ShimNativeWindowId window_id,
|
| + int attribute,
|
| + int* value);
|
| +SHIM_EXPORT bool ShimDestroyWindow(ShimNativeWindowId window_id);
|
| +
|
| +// Manage actual EGL platform objects (called from GPU process).
|
| +SHIM_EXPORT EGLNativeDisplayType ShimGetNativeDisplay();
|
| +SHIM_EXPORT EGLNativeWindowType
|
| + ShimGetNativeWindow(ShimNativeWindowId native_window_id);
|
| +SHIM_EXPORT bool ShimReleaseNativeWindow(EGLNativeWindowType native_window);
|
| +
|
| +#ifdef __cplusplus
|
| +}
|
| +#endif
|
| +
|
| +#endif /* __eglplatform_shim_h */
|
|
|