summaryrefslogtreecommitdiff
path: root/gfx/skia
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-01-02 13:35:39 +0000
committerMoonchild <moonchild@palemoon.org>2021-01-02 13:35:39 +0000
commitbabeb5c556de6f9686f5cd47133d0c40c07bfc2e (patch)
tree146dd48634e5d44746acdd49dc142e413349054d /gfx/skia
parent0bb464bfc13e3a0239fd268de265fc332014b385 (diff)
downloaduxp-babeb5c556de6f9686f5cd47133d0c40c07bfc2e.tar.gz
Issue #61 - Reinstate buildability with shared gkmedias dll
This fully works for splitting gkmedias.dll back out from xul with one exception which is Skia throwing undefined externals when linking gkmedias.
Diffstat (limited to 'gfx/skia')
-rwxr-xr-xgfx/skia/generate_mozbuild.py4
-rw-r--r--gfx/skia/moz.build6
-rw-r--r--gfx/skia/skia/include/utils/SkPaintFilterCanvas.h2
-rw-r--r--gfx/skia/skia/src/core/SkCanvas.cpp4
-rw-r--r--gfx/skia/skia/src/ports/SkTypeface_win_dw.cpp2
5 files changed, 14 insertions, 4 deletions
diff --git a/gfx/skia/generate_mozbuild.py b/gfx/skia/generate_mozbuild.py
index 08d6ed9ab7..de0a5c52e4 100755
--- a/gfx/skia/generate_mozbuild.py
+++ b/gfx/skia/generate_mozbuild.py
@@ -84,6 +84,10 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
'skia/src/fonts/SkRemotableFontMgr.cpp',
]
+if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
+ DEFINES['SKIA_DLL'] = 1
+ DEFINES['GR_DLL'] = 1
+
# We should autogenerate these SSE related flags.
if CONFIG['_MSC_VER']:
diff --git a/gfx/skia/moz.build b/gfx/skia/moz.build
index 56570e61fb..4ef5060b0f 100644
--- a/gfx/skia/moz.build
+++ b/gfx/skia/moz.build
@@ -643,7 +643,6 @@ else:
'skia/src/opts/SkBlitRow_opts_none.cpp',
]
-
# We allow warnings for third-party code that can be updated from upstream.
ALLOW_COMPILER_WARNINGS = True
@@ -694,6 +693,11 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
'skia/src/fonts/SkRemotableFontMgr.cpp',
]
+if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
+ DEFINES['SKIA_DLL'] = 1
+ DEFINES['GR_DLL'] = 1
+ DEFINES['SK_FONT_HOST_USE_SYSTEM_SETTINGS'] = 1
+
# We should autogenerate these SSE related flags.
if CONFIG['_MSC_VER']:
diff --git a/gfx/skia/skia/include/utils/SkPaintFilterCanvas.h b/gfx/skia/skia/include/utils/SkPaintFilterCanvas.h
index 63eaaa2fbc..29474df0fb 100644
--- a/gfx/skia/skia/include/utils/SkPaintFilterCanvas.h
+++ b/gfx/skia/skia/include/utils/SkPaintFilterCanvas.h
@@ -27,7 +27,7 @@ public:
* specified canvas. Also copies the target canvas matrix and clip bounds.
*/
SkPaintFilterCanvas(SkCanvas* canvas);
-
+
enum Type {
kPaint_Type,
kPoint_Type,
diff --git a/gfx/skia/skia/src/core/SkCanvas.cpp b/gfx/skia/skia/src/core/SkCanvas.cpp
index 505592d0f2..0a080f737a 100644
--- a/gfx/skia/skia/src/core/SkCanvas.cpp
+++ b/gfx/skia/skia/src/core/SkCanvas.cpp
@@ -22,6 +22,7 @@
#include "SkLatticeIter.h"
#include "SkMatrixUtils.h"
#include "SkMetaData.h"
+#include "SkNWayCanvas.h"
#include "SkNx.h"
#include "SkPaintPriv.h"
#include "SkPatchUtils.h"
@@ -45,9 +46,10 @@
#include "GrContext.h"
#include "GrRenderTarget.h"
#include "SkGrPriv.h"
-
#endif
+class SkNWayCanvas;
+
#define RETURN_ON_NULL(ptr) do { if (nullptr == (ptr)) return; } while (0)
/*
diff --git a/gfx/skia/skia/src/ports/SkTypeface_win_dw.cpp b/gfx/skia/skia/src/ports/SkTypeface_win_dw.cpp
index 96a728f600..ca5f01aed2 100644
--- a/gfx/skia/skia/src/ports/SkTypeface_win_dw.cpp
+++ b/gfx/skia/skia/src/ports/SkTypeface_win_dw.cpp
@@ -251,7 +251,7 @@ SkScalerContext* DWriteFontTypeface::onCreateScalerContext(const SkScalerContext
}
#ifdef MOZ_SKIA
-IDWriteRenderingParams* GetDwriteRenderingParams(bool aGDI);
+extern IDWriteRenderingParams* GetDwriteRenderingParams(bool aGDI);
#endif
void DWriteFontTypeface::onFilterRec(SkScalerContext::Rec* rec) const {