Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / gpu / gles2_conform_support / native / egl_native.cc
blobbf8c7719b9615a16c39087da9ac3f455d061ff9b
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 extern "C" {
6 #if defined(GLES2_CONFORM_SUPPORT_ONLY)
7 #include "gpu/gles2_conform_support/gtf/gtf_stubs.h"
8 #else
9 #include "third_party/gles2_conform/GTF_ES/glsl/GTF/Source/eglNative.h"
10 #endif
12 GTFbool GTFNativeCreatePixmap(EGLNativeDisplayType nativeDisplay,
13 EGLDisplay eglDisplay, EGLConfig eglConfig,
14 const char *title, int width, int height,
15 EGLNativePixmapType *pNativePixmap) {
16 return GTFtrue;
19 void GTFNativeDestroyPixmap(EGLNativeDisplayType nativeDisplay,
20 EGLNativePixmapType nativePixmap) {
23 EGLImageKHR GTFCreateEGLImageExternal(
24 int width, int height, int format,
25 float r, float g, float b, float a, void** resource) {
26 return (EGLImageKHR)0;
29 void GTFDestroyEGLImageExternal(EGLImageKHR image, void* resource) {
32 const int* GTFQueryFormatsEGLImageExternal(void) {
33 return 0;
36 GTFbool GTFIsAlphaFormatEGLImageExternal(int format) {
37 return GTFfalse;
40 } // extern "C"