summaryrefslogtreecommitdiff
path: root/core/fxge/apple
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-05-29 20:52:50 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-29 20:52:50 +0000
commita210ee1eba66e53de374ccae56a89d0b1976509d (patch)
tree866efd97b7b9c12eaa30fdf36191361b00cd2ec8 /core/fxge/apple
parent6af5369477ec05554ef9e73ae6762860095f09e9 (diff)
downloadpdfium-a210ee1eba66e53de374ccae56a89d0b1976509d.tar.xz
Pass a CFX_Matrix by reference in font code.chromium/3445
The callers always pass in a valid CFX_Matrix, so eliminate the possibility of a nullptr. Change-Id: Id7d8b731ed60d5f66517b50c56efeca343e897c4 Reviewed-on: https://pdfium-review.googlesource.com/33152 Reviewed-by: Nicolás Peña Moreno <npm@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxge/apple')
-rw-r--r--core/fxge/apple/fx_apple_platform.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxge/apple/fx_apple_platform.cpp b/core/fxge/apple/fx_apple_platform.cpp
index 1801814e66..bc7d999282 100644
--- a/core/fxge/apple/fx_apple_platform.cpp
+++ b/core/fxge/apple/fx_apple_platform.cpp
@@ -168,7 +168,7 @@ void CFX_FaceCache::DestroyPlatform() {}
std::unique_ptr<CFX_GlyphBitmap> CFX_FaceCache::RenderGlyph_Nativetext(
const CFX_Font* pFont,
uint32_t glyph_index,
- const CFX_Matrix* pMatrix,
+ const CFX_Matrix& matrix,
uint32_t dest_width,
int anti_alias) {
return nullptr;