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

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

Issue 10826152: make egl_native.cc compile on OSX (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « no previous file | 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) 2012 The Chromium Authors. All rights reserved. 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 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
11 11
12 GTFbool GTFNativeCreatePixmap(EGLNativeDisplayType nativeDisplay, 12 GTFbool GTFNativeCreatePixmap(EGLNativeDisplayType nativeDisplay,
13 EGLDisplay eglDisplay, EGLConfig eglConfig, 13 EGLDisplay eglDisplay, EGLConfig eglConfig,
14 const char *title, int width, int height, 14 const char *title, int width, int height,
15 EGLNativePixmapType *pNativePixmap) { 15 EGLNativePixmapType *pNativePixmap) {
16 return GTFtrue; 16 return GTFtrue;
17 } 17 }
18 18
19 void GTFNativeDestroyPixmap(EGLNativeDisplayType nativeDisplay, 19 void GTFNativeDestroyPixmap(EGLNativeDisplayType nativeDisplay,
20 EGLNativePixmapType nativePixmap) { 20 EGLNativePixmapType nativePixmap) {
21 } 21 }
22 22
23 EGLImageKHR GTFCreateEGLImageExternal( 23 EGLImageKHR GTFCreateEGLImageExternal(
24 int width, int height, int format, 24 int width, int height, int format,
25 float r, float g, float b, float a, void** resource) { 25 float r, float g, float b, float a, void** resource) {
26 return (EGLImageKHR)NULL; 26 return (EGLImageKHR)0;
27 } 27 }
28 28
29 void GTFDestroyEGLImageExternal(EGLImageKHR image, void* resource) { 29 void GTFDestroyEGLImageExternal(EGLImageKHR image, void* resource) {
30 } 30 }
31 31
32 const int* GTFQueryFormatsEGLImageExternal(void) { 32 const int* GTFQueryFormatsEGLImageExternal(void) {
33 return NULL; 33 return 0;
34 } 34 }
35 35
36 GTFbool GTFIsAlphaFormatEGLImageExternal(int format) { 36 GTFbool GTFIsAlphaFormatEGLImageExternal(int format) {
37 return GTFfalse; 37 return GTFfalse;
38 } 38 }
39 39
40 } // extern "C" 40 } // extern "C"
41 41
42 42
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698