diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-08-16 13:51:43 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-08-16 17:32:56 +0200 |
commit | 46b3a2401d371b20bdbfca6a47c09408259d595f (patch) | |
tree | f89d3f274688d66c8a92249de5130dfe2ee73ded /vcl/inc | |
parent | a518d1acf7f2f9952ab1d20f3185615351655ef8 (diff) |
vcl: support pre-computed glyph items in OutputDevice::ImplLayout()
This allows using the SalLayoutGlyphs obtained from
GenericSalLayout::GetGlyphs() to return early in
GenericSalLayout::LayoutText().
Change-Id: If3a004f983f3578915786668bfcada00227d2eeb
Reviewed-on: https://gerrit.libreoffice.org/59169
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/sallayout.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/inc/sallayout.hxx b/vcl/inc/sallayout.hxx index 2aa650a1c75a..a8b9e233f450 100644 --- a/vcl/inc/sallayout.hxx +++ b/vcl/inc/sallayout.hxx @@ -139,7 +139,7 @@ public: explicit MultiSalLayout( std::unique_ptr<SalLayout> pBaseLayout ); void AddFallback( std::unique_ptr<SalLayout> pFallbackLayout, ImplLayoutRuns const &, const PhysicalFontFace* pFallbackFont ); - bool LayoutText(ImplLayoutArgs&) override; + bool LayoutText(ImplLayoutArgs&, const SalLayoutGlyphs*) override; void AdjustLayout(ImplLayoutArgs&) override; void InitFont() const override; @@ -172,7 +172,7 @@ public: ~GenericSalLayout() override; void AdjustLayout(ImplLayoutArgs&) final override; - bool LayoutText(ImplLayoutArgs&) final override; + bool LayoutText(ImplLayoutArgs&, const SalLayoutGlyphs*) final override; void DrawText(SalGraphics&) const final override; std::shared_ptr<vcl::TextLayoutCache> CreateTextLayoutCache(OUString const&) const final override; SalLayoutGlyphs GetGlyphs() const final override; |