| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ | 7 #ifndef CORE_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ |
| 8 #define CORE_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ | 8 #define CORE_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 #define FXFILL_NOPATHSMOOTH 512 | 61 #define FXFILL_NOPATHSMOOTH 512 |
| 62 | 62 |
| 63 #define FXTEXT_CLEARTYPE 0x01 | 63 #define FXTEXT_CLEARTYPE 0x01 |
| 64 #define FXTEXT_BGR_STRIPE 0x02 | 64 #define FXTEXT_BGR_STRIPE 0x02 |
| 65 #define FXTEXT_PRINTGRAPHICTEXT 0x04 | 65 #define FXTEXT_PRINTGRAPHICTEXT 0x04 |
| 66 #define FXTEXT_NO_NATIVETEXT 0x08 | 66 #define FXTEXT_NO_NATIVETEXT 0x08 |
| 67 #define FXTEXT_PRINTIMAGETEXT 0x10 | 67 #define FXTEXT_PRINTIMAGETEXT 0x10 |
| 68 #define FXTEXT_NOSMOOTH 0x20 | 68 #define FXTEXT_NOSMOOTH 0x20 |
| 69 | 69 |
| 70 struct FXTEXT_CHARPOS { | 70 struct FXTEXT_CHARPOS { |
| 71 uint32_t m_GlyphIndex; | 71 FX_FLOAT m_AdjustMatrix[4]; |
| 72 FX_FLOAT m_OriginX; | 72 FX_FLOAT m_OriginX; |
| 73 FX_FLOAT m_OriginY; | 73 FX_FLOAT m_OriginY; |
| 74 int m_FontCharWidth; | 74 uint32_t m_GlyphIndex; |
| 75 FX_BOOL m_bGlyphAdjust; | 75 int32_t m_FontCharWidth; |
| 76 FX_FLOAT m_AdjustMatrix[4]; | |
| 77 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ | 76 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ |
| 78 uint32_t m_ExtGID; | 77 uint32_t m_ExtGID; |
| 79 #endif | 78 #endif |
| 79 bool m_bGlyphAdjust; |
| 80 bool m_bFontStyle; | 80 bool m_bFontStyle; |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 class CFX_RenderDevice { | 83 class CFX_RenderDevice { |
| 84 public: | 84 public: |
| 85 CFX_RenderDevice(); | 85 CFX_RenderDevice(); |
| 86 virtual ~CFX_RenderDevice(); | 86 virtual ~CFX_RenderDevice(); |
| 87 | 87 |
| 88 // Take ownership of |pDriver|. | 88 // Take ownership of |pDriver|. |
| 89 void SetDeviceDriver(std::unique_ptr<IFX_RenderDeviceDriver> pDriver); | 89 void SetDeviceDriver(std::unique_ptr<IFX_RenderDeviceDriver> pDriver); |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 int m_Width; | 277 int m_Width; |
| 278 int m_Height; | 278 int m_Height; |
| 279 int m_bpp; | 279 int m_bpp; |
| 280 int m_RenderCaps; | 280 int m_RenderCaps; |
| 281 int m_DeviceClass; | 281 int m_DeviceClass; |
| 282 FX_RECT m_ClipBox; | 282 FX_RECT m_ClipBox; |
| 283 std::unique_ptr<IFX_RenderDeviceDriver> m_pDeviceDriver; | 283 std::unique_ptr<IFX_RenderDeviceDriver> m_pDeviceDriver; |
| 284 }; | 284 }; |
| 285 | 285 |
| 286 #endif // CORE_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ | 286 #endif // CORE_FXGE_INCLUDE_CFX_RENDERDEVICE_H_ |
| OLD | NEW |