From 417f3442593713a87e723379438bea7d842e977a Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Mon, 9 Apr 2018 20:21:55 +0000 Subject: Remove RenderDeviceDriverIface::GetCTM(). It has no overrides and always returns the identity matrix. Many callers that use the returned value can be simplified, because they are scaling by 1 or concatenating an identity matrix. Change-Id: I7afb7214be210d02638644dfb9b58404420c2ef2 Reviewed-on: https://pdfium-review.googlesource.com/29972 Commit-Queue: Ryan Harrison Reviewed-by: Ryan Harrison --- core/fxge/fx_ge_text.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'core/fxge/fx_ge_text.cpp') diff --git a/core/fxge/fx_ge_text.cpp b/core/fxge/fx_ge_text.cpp index 3739e11393..a74b8fb9b9 100644 --- a/core/fxge/fx_ge_text.cpp +++ b/core/fxge/fx_ge_text.cpp @@ -43,9 +43,7 @@ ScopedFontTransform::~ScopedFontTransform() { } FX_RECT FXGE_GetGlyphsBBox(const std::vector& glyphs, - int anti_alias, - float retinaScaleX, - float retinaScaleY) { + int anti_alias) { FX_RECT rect(0, 0, 0, 0); bool bStarted = false; for (const FXTEXT_GLYPHPOS& glyph : glyphs) { @@ -59,7 +57,6 @@ FX_RECT FXGE_GetGlyphsBBox(const std::vector& glyphs, continue; FX_SAFE_INT32 char_width = pGlyph->m_pBitmap->GetWidth(); - char_width /= retinaScaleX; if (anti_alias == FXFT_RENDER_MODE_LCD) char_width /= 3; if (!char_width.IsValid()) @@ -75,7 +72,6 @@ FX_RECT FXGE_GetGlyphsBBox(const std::vector& glyphs, continue; FX_SAFE_INT32 char_height = pGlyph->m_pBitmap->GetHeight(); - char_height /= retinaScaleY; if (!char_height.IsValid()) continue; -- cgit v1.2.3