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 #include "gpu/gles2_conform_support/egl/display.h"
8 #if defined(GLES2_CONFORM_SUPPORT_ONLY)
9 #include "gpu/gles2_conform_support/gtf/gtf_stubs.h"
11 #include "third_party/gles2_conform/GTF_ES/glsl/GTF/Source/eglNative.h"
14 GTFbool
GTFNativeCreateDisplay(EGLNativeDisplayType
*pNativeDisplay
) {
15 *pNativeDisplay
= EGL_DEFAULT_DISPLAY
;
19 void GTFNativeDestroyDisplay(EGLNativeDisplayType nativeDisplay
) {
20 // Nothing to destroy since we are using EGL_DEFAULT_DISPLAY
23 GTFbool
GTFNativeCreateWindow(EGLNativeDisplayType nativeDisplay
,
24 EGLDisplay eglDisplay
, EGLConfig eglConfig
,
25 const char* title
, int width
, int height
,
26 EGLNativeWindowType
*pNativeWindow
) {
27 egl::Display
* display
= static_cast<egl::Display
*>(eglDisplay
);
28 display
->SetCreateOffscreen(width
, height
);
32 void GTFNativeDestroyWindow(EGLNativeDisplayType nativeDisplay
,
33 EGLNativeWindowType nativeWindow
) {
36 EGLImageKHR
GTFCreateEGLImage(int width
, int height
,
37 GLenum format
, GLenum type
) {
38 return (EGLImageKHR
)NULL
;
41 void GTFDestroyEGLImage(EGLImageKHR image
) {