diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2019-11-12 17:28:14 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-11-27 09:55:18 +0100 |
commit | ce51719a2807887eebbe8fba4793e8d6e6c20a41 (patch) | |
tree | 3c30cc95ecd7519b984829555c033550d5c512e6 | |
parent | 7e5e3b8b0831d9f6aff7481d1163a366e76141d7 (diff) |
fix Skia with --enable-pch=full
Change-Id: I6bec47e373c042d1ffb3607bf5dca9dfe2509466
-rw-r--r-- | external/skia/fix-pch.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/external/skia/fix-pch.patch b/external/skia/fix-pch.patch index 1bd09f1bbc30..a991e80970e9 100644 --- a/external/skia/fix-pch.patch +++ b/external/skia/fix-pch.patch @@ -54,3 +54,31 @@ #include <dwrite.h> #include <d2d1.h> +--- skia/include/core/SkColor.h ++++ skia/include/core/SkColor.h +@@ -396,6 +396,7 @@ using SkColor4f = SkRGBA4f<kUnpremul_SkAlphaType>; + + template <> SK_API SkColor4f SkColor4f::FromColor(SkColor); + template <> SK_API SkColor SkColor4f::toSkColor() const; ++template <> uint32_t SkColor4f::toBytes_RGBA() const; + + namespace SkColors { + constexpr SkColor4f kTransparent = {0, 0, 0, 0}; +--- skia/include/private/SkColorData.h ++++ skia/include/private/SkColorData.h +@@ -441,4 +441,6 @@ constexpr SkPMColor4f SK_PMColor4fILLEGAL = { SK_FloatNegativeInfinity, + SK_FloatNegativeInfinity, + SK_FloatNegativeInfinity }; + ++template <> uint32_t SkPMColor4f::toBytes_RGBA() const; ++ + #endif +--- skia/src/gpu/text/GrTextBlobCache.h ++++ skia/src/gpu/text/GrTextBlobCache.h +@@ -188,4 +188,6 @@ private: + SkMessageBus<PurgeBlobMessage>::Inbox fPurgeBlobInbox; + }; + ++template<> SkMessageBus<GrTextBlobCache::PurgeBlobMessage>* SkMessageBus<GrTextBlobCache::PurgeBlobMessage>::Get(); ++ + #endif |