mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 17:37:30 +09:00
Issue #80 - De-unify gfx/thebes
This commit is contained in:
parent
edaea616b3
commit
94ae8488f4
15 changed files with 32 additions and 22 deletions
|
|
@ -15,7 +15,6 @@
|
||||||
#include "mozilla/gfx/Logging.h"
|
#include "mozilla/gfx/Logging.h"
|
||||||
#include "mozilla/layers/CompositorThread.h"
|
#include "mozilla/layers/CompositorThread.h"
|
||||||
#include "nsIGfxInfo.h"
|
#include "nsIGfxInfo.h"
|
||||||
#include <d3d11.h>
|
|
||||||
#include <ddraw.h>
|
#include <ddraw.h>
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
#include <objbase.h>
|
#include <objbase.h>
|
||||||
|
|
||||||
#include <dxgi.h>
|
#include <dxgi.h>
|
||||||
|
#include <d3d11.h>
|
||||||
|
|
||||||
// This header is available in the June 2010 SDK and in the Win8 SDK
|
// This header is available in the June 2010 SDK and in the Win8 SDK
|
||||||
#include <d3dcommon.h>
|
#include <d3dcommon.h>
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@
|
||||||
#include "nsDirectoryServiceDefs.h"
|
#include "nsDirectoryServiceDefs.h"
|
||||||
#include "nsAppDirectoryServiceDefs.h"
|
#include "nsAppDirectoryServiceDefs.h"
|
||||||
#include "nsISimpleEnumerator.h"
|
#include "nsISimpleEnumerator.h"
|
||||||
|
#include "GeckoProfiler.h"
|
||||||
|
|
||||||
#include "gfxGDIFontList.h"
|
#include "gfxGDIFontList.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,11 @@
|
||||||
|
|
||||||
#include "cairo.h"
|
#include "cairo.h"
|
||||||
|
|
||||||
|
#ifdef XP_WIN
|
||||||
|
#include "cairo-win32.h"
|
||||||
|
#include "gfxWindowsPlatform.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "harfbuzz/hb.h"
|
#include "harfbuzz/hb.h"
|
||||||
#include "harfbuzz/hb-ot.h"
|
#include "harfbuzz/hb-ot.h"
|
||||||
#include "graphite2/Font.h"
|
#include "graphite2/Font.h"
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@
|
||||||
#include "gfxTypes.h"
|
#include "gfxTypes.h"
|
||||||
#include "gfxContext.h"
|
#include "gfxContext.h"
|
||||||
#include "gfxFontConstants.h"
|
#include "gfxFontConstants.h"
|
||||||
|
#include "gfxGraphiteShaper.h"
|
||||||
#include "gfxHarfBuzzShaper.h"
|
#include "gfxHarfBuzzShaper.h"
|
||||||
#include "gfxUserFontSet.h"
|
#include "gfxUserFontSet.h"
|
||||||
#include "gfxPlatformFontList.h"
|
#include "gfxPlatformFontList.h"
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,8 @@
|
||||||
#include "nsIObserverService.h"
|
#include "nsIObserverService.h"
|
||||||
#include "nsThreadUtils.h" // for nsRunnable
|
#include "nsThreadUtils.h" // for nsRunnable
|
||||||
#include "gfxPlatformFontList.h"
|
#include "gfxPlatformFontList.h"
|
||||||
|
#include "mozilla/gfx/Logging.h"
|
||||||
|
#include <d3d11.h>
|
||||||
|
|
||||||
using namespace mozilla;
|
using namespace mozilla;
|
||||||
using services::GetObserverService;
|
using services::GetObserverService;
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,8 @@
|
||||||
#include "nsUnicodeProperties.h"
|
#include "nsUnicodeProperties.h"
|
||||||
#include "mozilla/gfx/2D.h"
|
#include "mozilla/gfx/2D.h"
|
||||||
|
|
||||||
|
using namespace mozilla;
|
||||||
|
|
||||||
class gfxHarfBuzzShaper : public gfxFontShaper {
|
class gfxHarfBuzzShaper : public gfxFontShaper {
|
||||||
public:
|
public:
|
||||||
explicit gfxHarfBuzzShaper(gfxFont *aFont);
|
explicit gfxHarfBuzzShaper(gfxFont *aFont);
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
#include "harfbuzz/hb-ot.h"
|
#include "harfbuzz/hb-ot.h"
|
||||||
|
|
||||||
#define FixedToFloat(f) ((f) * (1.0 / 65536.0))
|
#define FixedToFloat(f) ((f) * (1.0 / 65536.0))
|
||||||
|
#define FloatToFixed(f) (65536 * (f))
|
||||||
|
|
||||||
using namespace mozilla;
|
using namespace mozilla;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,8 @@
|
||||||
#include "mozilla/gfx/Tools.h"
|
#include "mozilla/gfx/Tools.h"
|
||||||
#include "mozilla/gfx/Matrix.h" // for Matrix4x4
|
#include "mozilla/gfx/Matrix.h" // for Matrix4x4
|
||||||
|
|
||||||
|
using namespace mozilla::gfx;
|
||||||
|
|
||||||
#define CAIRO_MATRIX(x) reinterpret_cast<cairo_matrix_t*>((x))
|
#define CAIRO_MATRIX(x) reinterpret_cast<cairo_matrix_t*>((x))
|
||||||
#define CONST_CAIRO_MATRIX(x) reinterpret_cast<const cairo_matrix_t*>((x))
|
#define CONST_CAIRO_MATRIX(x) reinterpret_cast<const cairo_matrix_t*>((x))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
using namespace mozilla;
|
||||||
using namespace mozilla::gfx;
|
using namespace mozilla::gfx;
|
||||||
|
|
||||||
gfxPattern::gfxPattern(const Color& aColor)
|
gfxPattern::gfxPattern(const Color& aColor)
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@
|
||||||
#define UTF8_CHARSET NS_LITERAL_CSTRING("utf-8")
|
#define UTF8_CHARSET NS_LITERAL_CSTRING("utf-8")
|
||||||
|
|
||||||
using namespace mozilla;
|
using namespace mozilla;
|
||||||
|
using namespace mozilla::gfx;
|
||||||
|
|
||||||
typedef mozilla::dom::Element Element;
|
typedef mozilla::dom::Element Element;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,8 @@
|
||||||
#define TOP() (parenStack[parenSP])
|
#define TOP() (parenStack[parenSP])
|
||||||
#define SYNC_FIXUP() (fixupCount = 0)
|
#define SYNC_FIXUP() (fixupCount = 0)
|
||||||
|
|
||||||
|
using namespace mozilla::unicode;
|
||||||
|
|
||||||
void
|
void
|
||||||
gfxScriptItemizer::push(uint32_t endPairChar, Script newScriptCode)
|
gfxScriptItemizer::push(uint32_t endPairChar, Script newScriptCode)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
#include "gfxSkipChars.h"
|
#include "gfxSkipChars.h"
|
||||||
#include "mozilla/BinarySearch.h"
|
#include "mozilla/BinarySearch.h"
|
||||||
|
#include "mozilla/gfx/Logging.h"
|
||||||
|
|
||||||
struct SkippedRangeStartComparator
|
struct SkippedRangeStartComparator
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,8 @@
|
||||||
|
|
||||||
#include "cairo.h"
|
#include "cairo.h"
|
||||||
|
|
||||||
|
#include <unicode/unorm2.h>
|
||||||
|
|
||||||
using namespace mozilla;
|
using namespace mozilla;
|
||||||
using namespace mozilla::gfx;
|
using namespace mozilla::gfx;
|
||||||
using namespace mozilla::unicode;
|
using namespace mozilla::unicode;
|
||||||
|
|
|
||||||
|
|
@ -148,11 +148,9 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
||||||
'PrintTargetWindows.cpp',
|
'PrintTargetWindows.cpp',
|
||||||
]
|
]
|
||||||
if CONFIG['MOZ_ENABLE_DWRITE_FONT']:
|
if CONFIG['MOZ_ENABLE_DWRITE_FONT']:
|
||||||
UNIFIED_SOURCES += [
|
|
||||||
'gfxDWriteFontList.cpp',
|
|
||||||
]
|
|
||||||
SOURCES += [
|
SOURCES += [
|
||||||
'gfxDWriteCommon.cpp',
|
'gfxDWriteCommon.cpp',
|
||||||
|
'gfxDWriteFontList.cpp',
|
||||||
'gfxDWriteFonts.cpp',
|
'gfxDWriteFonts.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
@ -164,27 +162,14 @@ if CONFIG['INTEL_ARCHITECTURE']:
|
||||||
SOURCES['gfxAlphaRecoverySSE2.cpp'].flags += CONFIG['SSE2_FLAGS']
|
SOURCES['gfxAlphaRecoverySSE2.cpp'].flags += CONFIG['SSE2_FLAGS']
|
||||||
|
|
||||||
SOURCES += [
|
SOURCES += [
|
||||||
'ContextStateTracker.cpp',
|
|
||||||
# Includes mac system header conflicting with point/size,
|
|
||||||
# and includes glxXlibSurface.h which drags in Xrender.h
|
|
||||||
'gfxASurface.cpp',
|
|
||||||
# on X11, gfxDrawable.cpp includes X headers for an old workaround which
|
|
||||||
# we could consider removing soon (affects Ubuntus older than 10.04 LTS)
|
|
||||||
# which currently prevent it from joining UNIFIED_SOURCES.
|
|
||||||
'gfxDrawable.cpp',
|
|
||||||
# gfxPlatform.cpp includes mac system header conflicting with point/size
|
|
||||||
'gfxPlatform.cpp',
|
|
||||||
'gfxPrefs.cpp',
|
|
||||||
'PrintTarget.cpp',
|
|
||||||
'PrintTargetThebes.cpp',
|
|
||||||
]
|
|
||||||
|
|
||||||
UNIFIED_SOURCES += [
|
|
||||||
'CJKCompatSVS.cpp',
|
'CJKCompatSVS.cpp',
|
||||||
|
'ContextStateTracker.cpp',
|
||||||
'gfxAlphaRecovery.cpp',
|
'gfxAlphaRecovery.cpp',
|
||||||
|
'gfxASurface.cpp',
|
||||||
'gfxBaseSharedMemorySurface.cpp',
|
'gfxBaseSharedMemorySurface.cpp',
|
||||||
'gfxBlur.cpp',
|
'gfxBlur.cpp',
|
||||||
'gfxContext.cpp',
|
'gfxContext.cpp',
|
||||||
|
'gfxDrawable.cpp',
|
||||||
'gfxFont.cpp',
|
'gfxFont.cpp',
|
||||||
'gfxFontEntry.cpp',
|
'gfxFontEntry.cpp',
|
||||||
'gfxFontFeatures.cpp',
|
'gfxFontFeatures.cpp',
|
||||||
|
|
@ -200,7 +185,9 @@ UNIFIED_SOURCES += [
|
||||||
'gfxMathTable.cpp',
|
'gfxMathTable.cpp',
|
||||||
'gfxMatrix.cpp',
|
'gfxMatrix.cpp',
|
||||||
'gfxPattern.cpp',
|
'gfxPattern.cpp',
|
||||||
|
'gfxPlatform.cpp',
|
||||||
'gfxPlatformFontList.cpp',
|
'gfxPlatformFontList.cpp',
|
||||||
|
'gfxPrefs.cpp',
|
||||||
'gfxRect.cpp',
|
'gfxRect.cpp',
|
||||||
'gfxScriptItemizer.cpp',
|
'gfxScriptItemizer.cpp',
|
||||||
'gfxSkipChars.cpp',
|
'gfxSkipChars.cpp',
|
||||||
|
|
@ -209,16 +196,18 @@ UNIFIED_SOURCES += [
|
||||||
'gfxUserFontSet.cpp',
|
'gfxUserFontSet.cpp',
|
||||||
'gfxUtils.cpp',
|
'gfxUtils.cpp',
|
||||||
'nsUnicodeRange.cpp',
|
'nsUnicodeRange.cpp',
|
||||||
|
'PrintTarget.cpp',
|
||||||
|
'PrintTargetThebes.cpp',
|
||||||
'SoftwareVsyncSource.cpp',
|
'SoftwareVsyncSource.cpp',
|
||||||
'VsyncSource.cpp',
|
'VsyncSource.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
||||||
UNIFIED_SOURCES += [
|
SOURCES += [
|
||||||
'gfxMacPlatformFontList.mm',
|
'gfxMacPlatformFontList.mm',
|
||||||
]
|
]
|
||||||
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
||||||
UNIFIED_SOURCES += [
|
SOURCES += [
|
||||||
'D3D11Checks.cpp',
|
'D3D11Checks.cpp',
|
||||||
'DeviceManagerDx.cpp',
|
'DeviceManagerDx.cpp',
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue