diff options
author | Björn Bidar | 2017-08-30 07:27:07 +0200 |
---|---|---|
committer | Björn Bidar | 2017-08-30 07:27:44 +0200 |
commit | c26fea13705ac1674510ab4deb9c8e6725249d91 (patch) | |
tree | 49f8c01c5ea94d072c97bc9b27932e8297f9cbab /fix_pgo_bug1389436_explicitly_instantiate_gfxFont.patch | |
parent | 99c5711a9ae6dafa42c8be0793367053b9f06697 (diff) | |
download | aur-c26fea13705ac1674510ab4deb9c8e6725249d91.tar.gz |
urel: added patch for pgo disabled by default for now
Diffstat (limited to 'fix_pgo_bug1389436_explicitly_instantiate_gfxFont.patch')
-rw-r--r-- | fix_pgo_bug1389436_explicitly_instantiate_gfxFont.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/fix_pgo_bug1389436_explicitly_instantiate_gfxFont.patch b/fix_pgo_bug1389436_explicitly_instantiate_gfxFont.patch new file mode 100644 index 000000000000..0be9feab2568 --- /dev/null +++ b/fix_pgo_bug1389436_explicitly_instantiate_gfxFont.patch @@ -0,0 +1,32 @@ +diff --git a/gfx/thebes/gfxFont.cpp b/gfx/thebes/gfxFont.cpp +--- a/gfx/thebes/gfxFont.cpp ++++ b/gfx/thebes/gfxFont.cpp +@@ -2634,16 +2634,28 @@ gfxFont::GetShapedWord(DrawTarget *aDraw + ShapeText(aDrawTarget, aText, 0, aLength, aRunScript, aVertical, + aRounding, sw); + + NS_WARNING_ASSERTION(ok, "failed to shape word - expect garbled text"); + + return sw; + } + ++template gfxShapedWord* ++gfxFont::GetShapedWord(DrawTarget *aDrawTarget, ++ const uint8_t *aText, ++ uint32_t aLength, ++ uint32_t aHash, ++ Script aRunScript, ++ bool aVertical, ++ int32_t aAppUnitsPerDevUnit, ++ gfx::ShapedTextFlags aFlags, ++ RoundingFlags aRounding, ++ gfxTextPerfMetrics *aTextPerf); ++ + bool + gfxFont::CacheHashEntry::KeyEquals(const KeyTypePointer aKey) const + { + const gfxShapedWord* sw = mShapedWord.get(); + if (!sw) { + return false; + } + if (sw->GetLength() != aKey->mLength || |