gfx/skia/patches/archive/SkPostConfig.patch

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 diff --git a/gfx/skia/include/core/SkPostConfig.h b/gfx/skia/include/core/SkPostConfig.h
     2 --- a/gfx/skia/include/core/SkPostConfig.h
     3 +++ b/gfx/skia/include/core/SkPostConfig.h
     4 @@ -277,19 +277,28 @@
     5  #endif
     7  //////////////////////////////////////////////////////////////////////
     9  #ifndef SK_OVERRIDE
    10  #if defined(_MSC_VER)
    11  #define SK_OVERRIDE override
    12  #elif defined(__clang__)
    13 +#if __has_feature(cxx_override_control)
    14  // Some documentation suggests we should be using __attribute__((override)),
    15  // but it doesn't work.
    16  #define SK_OVERRIDE override
    17 +#elif defined(__has_extension)
    18 +#if __has_extension(cxx_override_control)
    19 +#define SK_OVERRIDE override
    20 +#endif
    21 +#endif
    22 +#ifndef SK_OVERRIDE
    23 +#define SK_OVERRIDE
    24 +#endif
    25  #else
    26  // Linux GCC ignores "__attribute__((override))" and rejects "override".
    27  #define SK_OVERRIDE
    28  #endif
    29  #endif
    31  //////////////////////////////////////////////////////////////////////

mercurial