14b6829f0d28990dd645e16386eb226d0f10c8731shiqian// Copyright (c) 2011 The Chromium Authors. All rights reserved.
24b6829f0d28990dd645e16386eb226d0f10c8731shiqian// Use of this source code is governed by a BSD-style license that can be
34b6829f0d28990dd645e16386eb226d0f10c8731shiqian// found in the LICENSE file.
44b6829f0d28990dd645e16386eb226d0f10c8731shiqian
54b6829f0d28990dd645e16386eb226d0f10c8731shiqian// A small sample just to make sure we can actually compile and link
64b6829f0d28990dd645e16386eb226d0f10c8731shiqian// our OpenGL ES 2.0 conformance test support code.
74b6829f0d28990dd645e16386eb226d0f10c8731shiqian
84b6829f0d28990dd645e16386eb226d0f10c8731shiqian#include <EGL/egl.h>
94b6829f0d28990dd645e16386eb226d0f10c8731shiqian#include "gpu/gles2_conform_support/gtf/gtf_stubs.h"
104b6829f0d28990dd645e16386eb226d0f10c8731shiqian
114b6829f0d28990dd645e16386eb226d0f10c8731shiqian// Note: This code is not intended to run, only compile and link.
124b6829f0d28990dd645e16386eb226d0f10c8731shiqianint GTFMain(int argc, char** argv) {
134b6829f0d28990dd645e16386eb226d0f10c8731shiqian  EGLint major, minor;
144b6829f0d28990dd645e16386eb226d0f10c8731shiqian  EGLDisplay eglDisplay;
154b6829f0d28990dd645e16386eb226d0f10c8731shiqian  EGLNativeDisplayType nativeDisplay = EGL_DEFAULT_DISPLAY;
164b6829f0d28990dd645e16386eb226d0f10c8731shiqian
174b6829f0d28990dd645e16386eb226d0f10c8731shiqian  eglDisplay = eglGetDisplay(nativeDisplay);
184b6829f0d28990dd645e16386eb226d0f10c8731shiqian  eglInitialize(eglDisplay, &major, &minor);
194b6829f0d28990dd645e16386eb226d0f10c8731shiqian
204b6829f0d28990dd645e16386eb226d0f10c8731shiqian  return 0;
214b6829f0d28990dd645e16386eb226d0f10c8731shiqian}
224b6829f0d28990dd645e16386eb226d0f10c8731shiqian
234b6829f0d28990dd645e16386eb226d0f10c8731shiqian
244b6829f0d28990dd645e16386eb226d0f10c8731shiqian