equal
deleted
inserted
replaced
12 // |
12 // |
13 // Description: |
13 // Description: |
14 // Reference EGL implementation to support EGL sync objects and OpenWF extensions |
14 // Reference EGL implementation to support EGL sync objects and OpenWF extensions |
15 |
15 |
16 #include "eglprivate.h" |
16 #include "eglprivate.h" |
|
17 #include <e32debug.h> |
17 |
18 |
18 // Helper macros |
19 // Helper macros |
19 // |
20 // |
20 #define GET_THREAD_SESSION(s,r) CEglThreadSession* s = CEglThreadSession::Static(); \ |
21 #define GET_THREAD_SESSION(s,r) CEglThreadSession* s = CEglThreadSession::Static(); \ |
21 if (!s) \ |
22 if (!s) \ |
22 { \ |
23 { \ |
23 return r; \ |
24 return r; \ |
24 } |
25 } |
25 |
26 |
26 #define PANIC_NOT_SUPPORTED User::Panic(KEglPanicCategory, EEglPanicNotSupported); \ |
27 #define PANIC_NOT_SUPPORTED RDebug::Printf("EGL Panic %s %s:%d\n",__func__,__FILE__,__LINE__);User::Panic(KEglPanicCategory, EEglPanicNotSupported); \ |
27 return 0; |
28 return 0; |
28 |
29 |
29 // EGL API entrypoints |
30 // EGL API entrypoints |
30 // |
31 // |
31 EXPORT_C EGLDisplay eglGetDisplay(NativeDisplayType display_id) |
32 EXPORT_C EGLDisplay eglGetDisplay(NativeDisplayType display_id) |