summaryrefslogtreecommitdiff
path: root/core/fxge/ge/fx_ge_text.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-07-25 13:40:11 -0700
committerCommit bot <commit-bot@chromium.org>2016-07-25 13:40:11 -0700
commit22b05fc0f0cbfd3841b0963b577719fd16725081 (patch)
tree1c4024e32150ada8d6963d82daf4be824d411580 /core/fxge/ge/fx_ge_text.cpp
parent3e805789a3855007018f8463797a4f9fdb19838d (diff)
downloadpdfium-22b05fc0f0cbfd3841b0963b577719fd16725081.tar.xz
Remove FX_FONTCACHE_DEFINE
This macro isn't buying us anything and reduces transparency. Review-Url: https://codereview.chromium.org/2179953002
Diffstat (limited to 'core/fxge/ge/fx_ge_text.cpp')
-rw-r--r--core/fxge/ge/fx_ge_text.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxge/ge/fx_ge_text.cpp b/core/fxge/ge/fx_ge_text.cpp
index db86d65067..c97b88e27b 100644
--- a/core/fxge/ge/fx_ge_text.cpp
+++ b/core/fxge/ge/fx_ge_text.cpp
@@ -479,7 +479,7 @@ FX_BOOL CFX_RenderDevice::DrawNormalText(int nChars,
pCache = CFX_GEModule::Get()->GetFontCache();
CFX_FaceCache* pFaceCache = pCache->GetCachedFace(pFont);
- FX_FONTCACHE_DEFINE(pCache, pFont);
+ CFX_AutoFontCache autoFontCache(pCache, pFont);
std::vector<FXTEXT_GLYPHPOS> glyphs(nChars);
CFX_Matrix matrixCTM = GetCTM();
FX_FLOAT scale_x = FXSYS_fabs(matrixCTM.a);
@@ -634,7 +634,7 @@ FX_BOOL CFX_RenderDevice::DrawTextPathWithFlags(
pCache = CFX_GEModule::Get()->GetFontCache();
CFX_FaceCache* pFaceCache = pCache->GetCachedFace(pFont);
- FX_FONTCACHE_DEFINE(pCache, pFont);
+ CFX_AutoFontCache autoFontCache(pCache, pFont);
for (int iChar = 0; iChar < nChars; iChar++) {
const FXTEXT_CHARPOS& charpos = pCharPos[iChar];
CFX_Matrix matrix;