OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 extern "C" { | 5 extern "C" { |
6 #if defined(GLES2_CONFORM_SUPPORT_ONLY) | 6 #if defined(GLES2_CONFORM_SUPPORT_ONLY) |
7 #include "gpu/gles2_conform_support/gtf/gtf_stubs.h" | 7 #include "gpu/gles2_conform_support/gtf/gtf_stubs.h" |
8 #else | 8 #else |
9 #include "third_party/gles2_conform/GTF_ES/glsl/GTF/Source/eglNative.h" | 9 #include "third_party/gles2_conform/GTF_ES/glsl/GTF/Source/eglNative.h" |
10 #endif | 10 #endif |
(...skipping 20 matching lines...) Expand all Loading... |
31 result = 1; | 31 result = 1; |
32 break; | 32 break; |
33 default: | 33 default: |
34 result = ::DefWindowProc(hwnd, msg, w_param, l_param); | 34 result = ::DefWindowProc(hwnd, msg, w_param, l_param); |
35 break; | 35 break; |
36 } | 36 } |
37 return result; | 37 return result; |
38 } | 38 } |
39 } // namespace. | 39 } // namespace. |
40 | 40 |
| 41 extern "C" { |
| 42 |
41 GTFbool GTFNativeCreateDisplay(EGLNativeDisplayType *pNativeDisplay) { | 43 GTFbool GTFNativeCreateDisplay(EGLNativeDisplayType *pNativeDisplay) { |
42 *pNativeDisplay = EGL_DEFAULT_DISPLAY; | 44 *pNativeDisplay = EGL_DEFAULT_DISPLAY; |
43 return GTFtrue; | 45 return GTFtrue; |
44 } | 46 } |
45 | 47 |
46 void GTFNativeDestroyDisplay(EGLNativeDisplayType nativeDisplay) { | 48 void GTFNativeDestroyDisplay(EGLNativeDisplayType nativeDisplay) { |
47 // Nothing to destroy since we are using EGL_DEFAULT_DISPLAY | 49 // Nothing to destroy since we are using EGL_DEFAULT_DISPLAY |
48 } | 50 } |
49 | 51 |
50 GTFbool GTFNativeCreateWindow(EGLNativeDisplayType nativeDisplay, | 52 GTFbool GTFNativeCreateWindow(EGLNativeDisplayType nativeDisplay, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 UnregisterClass(kWindowClassName, GetModuleHandle(NULL)); | 106 UnregisterClass(kWindowClassName, GetModuleHandle(NULL)); |
105 } | 107 } |
106 | 108 |
107 EGLImageKHR GTFCreateEGLImage(int width, int height, | 109 EGLImageKHR GTFCreateEGLImage(int width, int height, |
108 GLenum format, GLenum type) { | 110 GLenum format, GLenum type) { |
109 return (EGLImageKHR)NULL; | 111 return (EGLImageKHR)NULL; |
110 } | 112 } |
111 | 113 |
112 void GTFDestroyEGLImage(EGLImageKHR image) { | 114 void GTFDestroyEGLImage(EGLImageKHR image) { |
113 } | 115 } |
| 116 |
| 117 } // extern "C" |
OLD | NEW |