| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef CORE_SRC_FXGE_APPLE_APPLE_INT_H_ | 7 #ifndef CORE_SRC_FXGE_APPLE_APPLE_INT_H_ |
| 8 #define CORE_SRC_FXGE_APPLE_APPLE_INT_H_ | 8 #define CORE_SRC_FXGE_APPLE_APPLE_INT_H_ |
| 9 | 9 |
| 10 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ | 10 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 CGPoint* glyphPositions, | 58 CGPoint* glyphPositions, |
| 59 int32_t chars, | 59 int32_t chars, |
| 60 FX_ARGB argb, | 60 FX_ARGB argb, |
| 61 CFX_AffineMatrix* matrix = NULL); | 61 CFX_AffineMatrix* matrix = NULL); |
| 62 void saveGraphicsState(void* graphics); | 62 void saveGraphicsState(void* graphics); |
| 63 void restoreGraphicsState(void* graphics); | 63 void restoreGraphicsState(void* graphics); |
| 64 }; | 64 }; |
| 65 class CApplePlatform | 65 class CApplePlatform |
| 66 { | 66 { |
| 67 public: | 67 public: |
| 68 CApplePlatform() | 68 CApplePlatform() {} |
| 69 { | 69 ~CApplePlatform() {} |
| 70 m_pFontMapper = NULL; | 70 |
| 71 } | |
| 72 ~CApplePlatform() | |
| 73 { | |
| 74 delete m_pFontMapper; | |
| 75 } | |
| 76 CQuartz2D _quartz2d; | 71 CQuartz2D _quartz2d; |
| 77 IFX_FontMapper* m_pFontMapper; | |
| 78 }; | 72 }; |
| 79 class CFX_QuartzDeviceDriver : public IFX_RenderDeviceDriver | 73 class CFX_QuartzDeviceDriver : public IFX_RenderDeviceDriver |
| 80 { | 74 { |
| 81 public: | 75 public: |
| 82 CFX_QuartzDeviceDriver(CGContextRef context, int32_t deviceClass); | 76 CFX_QuartzDeviceDriver(CGContextRef context, int32_t deviceClass); |
| 83 virtual ~CFX_QuartzDeviceDriver(); | 77 virtual ~CFX_QuartzDeviceDriver(); |
| 84 | 78 |
| 85 virtual int GetDeviceCaps(int caps_id); | 79 virtual int GetDeviceCaps(int caps_id); |
| 86 virtual CFX_Matrix GetCTM() const; | 80 virtual CFX_Matrix GetCTM() const; |
| 87 virtual CFX_DIBitmap* GetBackDrop() | 81 virtual CFX_DIBitmap* GetBackDrop() |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 int _tableCount; | 231 int _tableCount; |
| 238 int _totalSize; | 232 int _totalSize; |
| 239 }; | 233 }; |
| 240 uint32_t FX_GetHashCode( const FX_CHAR* pStr); | 234 uint32_t FX_GetHashCode( const FX_CHAR* pStr); |
| 241 FX_DWORD FX_IOSGetMatchFamilyNameHashcode(const FX_CHAR* pFontName); | 235 FX_DWORD FX_IOSGetMatchFamilyNameHashcode(const FX_CHAR* pFontName); |
| 242 uint32_t FX_IOSGetFamilyNamesCount(); | 236 uint32_t FX_IOSGetFamilyNamesCount(); |
| 243 const FX_CHAR* FX_IOSGetFamilyName( uint32_t uIndex); | 237 const FX_CHAR* FX_IOSGetFamilyName( uint32_t uIndex); |
| 244 #endif | 238 #endif |
| 245 | 239 |
| 246 #endif // CORE_SRC_FXGE_APPLE_APPLE_INT_H_ | 240 #endif // CORE_SRC_FXGE_APPLE_APPLE_INT_H_ |
| OLD | NEW |