Commit fa8d4e14 authored by Michael Wu's avatar Michael Wu
Browse files

Bug 736902 - Remove support for unused SetSwapRectangleANDROID symbol, r=gal

parent cc2d1479
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -507,7 +507,6 @@ public:
    bool SwapBuffers()
    {
        if (mSurface && !mPlatformContext) {
            //sEGLLibrary.fSetSwapRectangleANDROID(EGL_DISPLAY(), mSurface, 0, 0, gScreenBounds.width, gScreenBounds.height);
            return sEGLLibrary.fSwapBuffers(EGL_DISPLAY(), mSurface);
        } else {
            return false;
+0 −3
Original line number Diff line number Diff line
@@ -141,9 +141,6 @@ GLLibraryEGL::EnsureInitialized()
        SYMBOL(BindTexImage),
        SYMBOL(ReleaseTexImage),
        SYMBOL(QuerySurface),
#ifdef MOZ_WIDGET_GONK
        SYMBOL(SetSwapRectangleANDROID),
#endif
        { NULL, { NULL } }
    };

+0 −14
Original line number Diff line number Diff line
@@ -323,16 +323,6 @@ public:
        return b;
    }

#ifdef MOZ_WIDGET_GONK
    EGLBoolean fSetSwapRectangleANDROID(EGLDisplay dpy, EGLSurface surface, EGLint left, EGLint top, EGLint width, EGLint height)
    {
        BEFORE_GL_CALL;
        EGLBoolean b = mSymbols.fSetSwapRectangleANDROID(dpy, surface, left, top, width, height);
        AFTER_GL_CALL;
        return b;
    }
#endif

    // New extension which allow us to lock texture and get raw image pointer
    EGLBoolean fLockSurfaceKHR(EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list)
    {
@@ -467,10 +457,6 @@ public:
        pfnCreateImageKHR fCreateImageKHR;
        typedef EGLBoolean (GLAPIENTRY * pfnDestroyImageKHR)(EGLDisplay dpy, EGLImageKHR image);
        pfnDestroyImageKHR fDestroyImageKHR;
#ifdef MOZ_WIDGET_GONK
        typedef EGLBoolean (GLAPIENTRY * pfnSetSwapRectangleANDROID)(EGLDisplay dpy, EGLSurface surface, EGLint left, EGLint top, EGLint width, EGLint height);
        pfnSetSwapRectangleANDROID fSetSwapRectangleANDROID;
#endif

        // New extension which allow us to lock texture and get raw image pointer
        typedef EGLBoolean (GLAPIENTRY * pfnLockSurfaceKHR)(EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);