Changeset 225051 in webkit


Ignore:
Timestamp:
Nov 20, 2017 7:57:57 AM (6 years ago)
Author:
clopez@igalia.com
Message:

[WPE] GLContextEGLWPE.cpp:44:96: error: invalid cast from type ‘GLNativeWindowType {aka long long unsigned int}’ to type ‘EGLNativeWindowType {aka unsigned int}
https://bugs.webkit.org/show_bug.cgi?id=179511

Reviewed by Žan Doberšek.

r217208 changed the definition of GLNativeWindowType from EGLNativeWindowType to uint64_t for platform WPE.
This built fine on a 64-bit platform since uint64_t matches the size of a pointer, but fails on 32-bits.

This switches back the definition to EGLNativeWindowType.
And we need to include <EGL/eglplatform.h> first in order to get a definition for EGLNativeWindowType itself.

This commit pretty much reverts the changes r217208 did on platform/graphics/GLContext.h

No new tests, it is a build fix.

  • platform/graphics/GLContext.h:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r225050 r225051  
     12017-11-20  Carlos Alberto Lopez Perez  <clopez@igalia.com>
     2
     3        [WPE] GLContextEGLWPE.cpp:44:96: error: invalid cast from type ‘GLNativeWindowType {aka long long unsigned int}’ to type ‘EGLNativeWindowType {aka unsigned int}
     4        https://bugs.webkit.org/show_bug.cgi?id=179511
     5
     6        Reviewed by Žan Doberšek.
     7
     8        r217208 changed the definition of GLNativeWindowType from EGLNativeWindowType to uint64_t for platform WPE.
     9        This built fine on a 64-bit platform since uint64_t matches the size of a pointer, but fails on 32-bits.
     10
     11        This switches back the definition to EGLNativeWindowType.
     12        And we need to include <EGL/eglplatform.h> first in order to get a definition for EGLNativeWindowType itself.
     13
     14        This commit pretty much reverts the changes r217208 did on platform/graphics/GLContext.h
     15
     16        No new tests, it is a build fix.
     17
     18        * platform/graphics/GLContext.h:
     19
    1202017-11-20  Michael Catanzaro  <mcatanzaro@igalia.com>
    221
  • trunk/Source/WebCore/platform/graphics/GLContext.h

    r217208 r225051  
    2525#include <wtf/Noncopyable.h>
    2626
    27 #if USE(EGL) && !PLATFORM(GTK) && !PLATFORM(WPE)
     27#if USE(EGL) && !PLATFORM(GTK)
     28#if PLATFORM(WPE)
     29// FIXME: For now default to the GBM EGL platform, but this should really be
     30// somehow deducible from the build configuration.
     31#define __GBM__ 1
     32#include <EGL/eglplatform.h>
     33#else
    2834#include "eglplatform.h"
     35#endif // PLATFORM(WPE)
    2936typedef EGLNativeWindowType GLNativeWindowType;
    30 #else
     37#else // !USE(EGL) || PLATFORM(GTK)
    3138typedef uint64_t GLNativeWindowType;
    3239#endif
Note: See TracChangeset for help on using the changeset viewer.