summaryrefslogtreecommitdiff
path: root/core/fxge/android/cfx_androidfontinfo.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-08-20 17:01:06 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-20 17:01:06 +0000
commit5b10a4c713fbc831cc7bed16936b44ff65fd68b1 (patch)
treea0e7d9c3ade6ec0318b5464cfcd14aefef23b3a1 /core/fxge/android/cfx_androidfontinfo.cpp
parent032b3bed2b1888f1226e1d940fe41e9a09d2336c (diff)
downloadpdfium-5b10a4c713fbc831cc7bed16936b44ff65fd68b1.tar.xz
Remove refcounting from CFPF_SkiaFont.chromium/3529
The refcounting is useless, since CFPF_SkiaFontMgr always has a reference to the fonts anyway. Just make CFPF_SkiaFontMgr own the fonts, like on other platforms. Change-Id: Ifadb5c4e09f151ada4a0a68e0588166c2f2974d4 Reviewed-on: https://pdfium-review.googlesource.com/40610 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxge/android/cfx_androidfontinfo.cpp')
-rw-r--r--core/fxge/android/cfx_androidfontinfo.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/core/fxge/android/cfx_androidfontinfo.cpp b/core/fxge/android/cfx_androidfontinfo.cpp
index 20776414ab..2b3b42cc32 100644
--- a/core/fxge/android/cfx_androidfontinfo.cpp
+++ b/core/fxge/android/cfx_androidfontinfo.cpp
@@ -77,9 +77,4 @@ bool CFX_AndroidFontInfo::GetFontCharset(void* hFont, int* charset) {
return false;
}
-void CFX_AndroidFontInfo::DeleteFont(void* hFont) {
- if (!hFont)
- return;
-
- static_cast<CFPF_SkiaFont*>(hFont)->Release();
-}
+void CFX_AndroidFontInfo::DeleteFont(void* hFont) {}