зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1389733 - Add missing Skia compile guards. r=lsalzman
MozReview-Commit-ID: BXYxGjj0j73 --HG-- extra : rebase_source : dc54b6f513468879a2aeb8f298f1b920572c6402
This commit is contained in:
Родитель
5920648ff6
Коммит
d525be7d2f
|
@ -175,6 +175,7 @@ ScaledFontBase::GetPathForGlyphs(const GlyphBuffer &aBuffer, const DrawTarget *a
|
|||
path->StreamToSink(builder);
|
||||
return builder->Finish();
|
||||
#endif
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -218,14 +219,16 @@ ScaledFontBase::CopyGlyphsToBuilder(const GlyphBuffer &aBuffer, PathBuilder *aBu
|
|||
cairoPath->AppendPathToBuilder(builder);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
#ifdef USE_SKIA
|
||||
if (backendType == BackendType::RECORDING) {
|
||||
SkPath skPath = GetSkiaPathForGlyphs(aBuffer);
|
||||
RefPtr<Path> path = MakeAndAddRef<PathSkia>(skPath, FillRule::FILL_WINDING);
|
||||
path->StreamToSink(aBuilder);
|
||||
return;
|
||||
}
|
||||
MOZ_ASSERT(false, "Path not being copied");
|
||||
#endif
|
||||
MOZ_ASSERT(false, "Path not being copied");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -16,7 +16,9 @@
|
|||
#include "mozilla/UniquePtr.h"
|
||||
#include "gfxPoint.h"
|
||||
#include "nsRect.h"
|
||||
#ifdef MOZ_ENABLE_SKIA
|
||||
#include "mozilla/gfx/ConvolutionFilter.h"
|
||||
#endif
|
||||
|
||||
namespace mozilla {
|
||||
namespace image {
|
||||
|
|
Загрузка…
Ссылка в новой задаче