summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_type3cache.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-04-09 20:21:55 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-09 20:21:55 +0000
commit417f3442593713a87e723379438bea7d842e977a (patch)
treee154be3a5a5c1db3b19deb968a8a04b65a2a3e6a /core/fpdfapi/render/cpdf_type3cache.h
parent40baf04a567236d51b26e2d94f0ed7f2694cfeb1 (diff)
downloadpdfium-417f3442593713a87e723379438bea7d842e977a.tar.xz
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 <rharrison@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_type3cache.h')
-rw-r--r--core/fpdfapi/render/cpdf_type3cache.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/core/fpdfapi/render/cpdf_type3cache.h b/core/fpdfapi/render/cpdf_type3cache.h
index 7911785ab1..f0bfbd63b6 100644
--- a/core/fpdfapi/render/cpdf_type3cache.h
+++ b/core/fpdfapi/render/cpdf_type3cache.h
@@ -23,10 +23,7 @@ class CPDF_Type3Cache : public Retainable {
template <typename T, typename... Args>
friend RetainPtr<T> pdfium::MakeRetain(Args&&... args);
- CFX_GlyphBitmap* LoadGlyph(uint32_t charcode,
- const CFX_Matrix* pMatrix,
- float retinaScaleX,
- float retinaScaleY);
+ CFX_GlyphBitmap* LoadGlyph(uint32_t charcode, const CFX_Matrix* pMatrix);
private:
explicit CPDF_Type3Cache(CPDF_Type3Font* pFont);
@@ -34,9 +31,7 @@ class CPDF_Type3Cache : public Retainable {
std::unique_ptr<CFX_GlyphBitmap> RenderGlyph(CPDF_Type3Glyphs* pSize,
uint32_t charcode,
- const CFX_Matrix* pMatrix,
- float retinaScaleX,
- float retinaScaleY);
+ const CFX_Matrix* pMatrix);
UnownedPtr<CPDF_Type3Font> const m_pFont;
std::map<ByteString, std::unique_ptr<CPDF_Type3Glyphs>> m_SizeMap;