summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorweili <weili@chromium.org>2016-06-22 07:24:20 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-22 07:24:20 -0700
commitca0bc7deead753698af70dced5e619176e37c65a (patch)
tree8dacca2fc11e09bda7b09a9894daabcd36e8e5ea /core
parent29ce9238c6a05abb1de5e4175c97e4fcadd5640f (diff)
downloadpdfium-ca0bc7deead753698af70dced5e619176e37c65a.tar.xz
Fix Skia GN build on Mac
The build has been broken. This should make it compilable. Review-Url: https://codereview.chromium.org/2075343002
Diffstat (limited to 'core')
-rw-r--r--core/fxge/apple/fx_apple_platform.cpp28
1 files changed, 18 insertions, 10 deletions
diff --git a/core/fxge/apple/fx_apple_platform.cpp b/core/fxge/apple/fx_apple_platform.cpp
index 3bddf64280..c7e81d5339 100644
--- a/core/fxge/apple/fx_apple_platform.cpp
+++ b/core/fxge/apple/fx_apple_platform.cpp
@@ -19,6 +19,8 @@
#include "core/fxge/include/fx_freetype.h"
#include "core/fxge/include/fx_ge_apple.h"
+#ifndef _SKIA_SUPPORT_
+
namespace {
void DoNothing(void* info, const void* data, size_t size) {}
@@ -86,6 +88,7 @@ void CFX_AggDeviceDriver::InitPlatform() {
->m_quartz2d;
m_pPlatformGraphics = quartz2d.createGraphics(m_pBitmap);
}
+
void CFX_AggDeviceDriver::DestroyPlatform() {
CQuartz2D& quartz2d =
static_cast<CApplePlatform*>(CFX_GEModule::Get()->GetPlatformData())
@@ -95,16 +98,6 @@ void CFX_AggDeviceDriver::DestroyPlatform() {
m_pPlatformGraphics = nullptr;
}
}
-void CFX_FaceCache::InitPlatform() {}
-void CFX_FaceCache::DestroyPlatform() {}
-CFX_GlyphBitmap* CFX_FaceCache::RenderGlyph_Nativetext(
- CFX_Font* pFont,
- uint32_t glyph_index,
- const CFX_Matrix* pMatrix,
- int dest_width,
- int anti_alias) {
- return nullptr;
-}
FX_BOOL CFX_AggDeviceDriver::DrawDeviceText(int nChars,
const FXTEXT_CHARPOS* pCharPos,
@@ -166,6 +159,21 @@ FX_BOOL CFX_AggDeviceDriver::DrawDeviceText(int nChars,
return ret;
}
+#endif // _SKIA_SUPPORT_
+
+void CFX_FaceCache::InitPlatform() {}
+
+void CFX_FaceCache::DestroyPlatform() {}
+
+CFX_GlyphBitmap* CFX_FaceCache::RenderGlyph_Nativetext(
+ CFX_Font* pFont,
+ uint32_t glyph_index,
+ const CFX_Matrix* pMatrix,
+ int dest_width,
+ int anti_alias) {
+ return nullptr;
+}
+
void CFX_Font::ReleasePlatformResource() {
if (m_pPlatformFont) {
CQuartz2D& quartz2d =