Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(607)

Side by Side Diff: gpu/gles2_conform_support/native/egl_native_win.cc

Issue 10532111: Fix gles2 conformance tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gpu/gles2_conform_support/native/egl_native_linux.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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"
OLDNEW
« no previous file with comments | « gpu/gles2_conform_support/native/egl_native_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698