mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 1329362
- part 6, Rename Android specific macro GET_JAVA_SURFACE to GET_NATIVE_WINDOW in GLContextProviderEGL r=kats
This commit is contained in:
parent
6dbb1f7469
commit
7da5e28cec
@ -7,14 +7,12 @@
|
||||
#include <gdk/gdkx.h>
|
||||
// we're using default display for now
|
||||
#define GET_NATIVE_WINDOW(aWidget) ((EGLNativeWindowType)GDK_WINDOW_XID((GdkWindow*)aWidget->GetNativeData(NS_NATIVE_WINDOW)))
|
||||
#elif defined(MOZ_WIDGET_ANDROID)
|
||||
#define GET_NATIVE_WINDOW(aWidget) ((EGLNativeWindowType)aWidget->GetNativeData(NS_JAVA_SURFACE))
|
||||
#else
|
||||
#define GET_NATIVE_WINDOW(aWidget) ((EGLNativeWindowType)aWidget->GetNativeData(NS_NATIVE_WINDOW))
|
||||
#endif
|
||||
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
#define GET_JAVA_SURFACE(aWidget) (aWidget->GetNativeData(NS_JAVA_SURFACE))
|
||||
#endif
|
||||
|
||||
#if defined(XP_UNIX)
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
#include <android/native_window.h>
|
||||
@ -126,7 +124,7 @@ CreateSurfaceForWindow(nsIWidget* widget, const EGLConfig& config) {
|
||||
|
||||
MOZ_ASSERT(widget);
|
||||
#ifdef MOZ_WIDGET_ANDROID
|
||||
void* javaSurface = GET_JAVA_SURFACE(widget);
|
||||
EGLNativeWindowType javaSurface = GET_NATIVE_WINDOW(widget);
|
||||
if (!javaSurface) {
|
||||
MOZ_CRASH("GFX: Failed to get Java surface.\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user