Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Unified Diff: core/fxge/android/fx_android_imp.cpp

Issue 1881043004: Cleanup IFPF_* interfaces. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: core/fxge/android/fx_android_imp.cpp
diff --git a/core/fxge/android/fx_android_imp.cpp b/core/fxge/android/fx_android_imp.cpp
index e508183fd89d2f31dd6b1fa128354fa1eda913dc..bbaa2ba27a10025f403ae0b0af6177d2e57855ca 100644
--- a/core/fxge/android/fx_android_imp.cpp
+++ b/core/fxge/android/fx_android_imp.cpp
@@ -8,16 +8,16 @@
#if _FX_OS_ == _FX_ANDROID_
+#include "core/fxge/android/fpf_skiamodule.h"
#include "core/fxge/android/fx_android_font.h"
-#include "core/fxge/include/fpf.h"
#include "core/fxge/include/fx_ge.h"
void CFX_GEModule::InitPlatform() {
- IFPF_DeviceModule* pDeviceModule = FPF_GetDeviceModule();
- if (!pDeviceModule) {
+ CFPF_SkiaDeviceModule* pDeviceModule = CFPF_GetSkiaDeviceModule();
+ if (!pDeviceModule)
return;
- }
- IFPF_FontMgr* pFontMgr = pDeviceModule->GetFontMgr();
+
+ CFPF_SkiaFontMgr* pFontMgr = pDeviceModule->GetFontMgr();
if (pFontMgr) {
CFX_AndroidFontInfo* pFontInfo = new CFX_AndroidFontInfo;
pFontInfo->Init(pFontMgr);
@@ -25,10 +25,10 @@ void CFX_GEModule::InitPlatform() {
}
m_pPlatformData = pDeviceModule;
}
+
void CFX_GEModule::DestroyPlatform() {
- if (m_pPlatformData) {
- ((IFPF_DeviceModule*)m_pPlatformData)->Destroy();
- }
+ if (m_pPlatformData)
+ static_cast<IFPF_DeviceModule*>(m_pPlatformData)->Destroy();
}
-#endif
+#endif // _FX_OS_ == _FX_ANDROID_

Powered by Google App Engine
This is Rietveld 408576698