summaryrefslogtreecommitdiff
path: root/external/skia/lerp.patch
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-10-12 16:24:03 +0200
committerLuboš Luňák <l.lunak@collabora.com>2019-11-27 09:55:05 +0100
commit478f290e45c9cbf49576889088ea4dd71972d64b (patch)
treeded03f7b1915015956f85581da68d83d05de8520 /external/skia/lerp.patch
parent3a6f270edfffb97763927b2732feacedbdac1e80 (diff)
initial build of the Skia library
Not quite complete yet, missing e.g. Vulkan sources, and the setup is not completely correct either. Change-Id: I2283bf12f0d226ff8a34554deae5a7bd69045971
Diffstat (limited to 'external/skia/lerp.patch')
-rw-r--r--external/skia/lerp.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/external/skia/lerp.patch b/external/skia/lerp.patch
new file mode 100644
index 000000000000..c87a965e7caf
--- /dev/null
+++ b/external/skia/lerp.patch
@@ -0,0 +1,14 @@
+--- skia/src/shaders/SkPerlinNoiseShader.cpp.sav 2019-07-29 14:37:30.429563360 +0200
++++ skia/src/shaders/SkPerlinNoiseShader.cpp 2019-07-29 16:45:29.736231751 +0200
+@@ -573,9 +573,11 @@ static SkScalar fade(SkScalar t) {
+ return t * t * t * (t * (t * 6 - 15) + 10);
+ }
+
++#if __cplusplus <= 201703L
+ static SkScalar lerp(SkScalar t, SkScalar a, SkScalar b) {
+ return a + t * (b - a);
+ }
++#endif
+
+ static SkScalar grad(int hash, SkScalar x, SkScalar y, SkScalar z) {
+ int h = hash & 15;