| 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 struct WINDIB_Open_Args_; | 7 struct WINDIB_Open_Args_; |
| 8 class CGdiplusExt | 8 class CGdiplusExt |
| 9 { | 9 { |
| 10 public: | 10 public: |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 FX_BOOL GdiRemoveFontMemResourceEx(void* handle); | 51 FX_BOOL GdiRemoveFontMemResourceEx(void* handle); |
| 52 void* m_Functions[100]; | 52 void* m_Functions[100]; |
| 53 void* m_pGdiAddFontMemResourceEx; | 53 void* m_pGdiAddFontMemResourceEx; |
| 54 void* m_pGdiRemoveFontMemResourseEx; | 54 void* m_pGdiRemoveFontMemResourseEx; |
| 55 CFX_DIBitmap* LoadDIBitmap(WINDIB_Open_Args_ args); | 55 CFX_DIBitmap* LoadDIBitmap(WINDIB_Open_Args_ args); |
| 56 protected: | 56 protected: |
| 57 HMODULE m_hModule; | 57 HMODULE m_hModule; |
| 58 HMODULE m_GdiModule; | 58 HMODULE m_GdiModule; |
| 59 }; | 59 }; |
| 60 #include "dwrite_int.h" | 60 #include "dwrite_int.h" |
| 61 class CWin32Platform : public CFX_Object | 61 class CWin32Platform |
| 62 { | 62 { |
| 63 public: | 63 public: |
| 64 FX_BOOL m_bHalfTone; | 64 FX_BOOL m_bHalfTone; |
| 65 CGdiplusExt m_GdiplusExt; | 65 CGdiplusExt m_GdiplusExt; |
| 66 CDWriteExt m_DWriteExt; | 66 CDWriteExt m_DWriteExt; |
| 67 }; | 67 }; |
| 68 class CGdiDeviceDriver : public IFX_RenderDeviceDriver | 68 class CGdiDeviceDriver : public IFX_RenderDeviceDriver |
| 69 { | 69 { |
| 70 protected: | 70 protected: |
| 71 virtual int GetDeviceCaps(int caps_id); | 71 virtual int GetDeviceCaps(int caps_id); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 int alpha_flag, void* pIccTransform); | 157 int alpha_flag, void* pIccTransform); |
| 158 virtual FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap, FX_DWORD color,
int dest_left, int dest_top, | 158 virtual FX_BOOL StretchDIBits(const CFX_DIBSource* pBitmap, FX_DWORD color,
int dest_left, int dest_top, |
| 159 int dest_width, int dest_height, const FX_RECT
* pClipRect, FX_DWORD flags, | 159 int dest_width, int dest_height, const FX_RECT
* pClipRect, FX_DWORD flags, |
| 160 int alpha_flag, void* pIccTransform, int blend
_type); | 160 int alpha_flag, void* pIccTransform, int blend
_type); |
| 161 virtual FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap, int bitmap_alp
ha, FX_DWORD color, | 161 virtual FX_BOOL StartDIBits(const CFX_DIBSource* pBitmap, int bitmap_alp
ha, FX_DWORD color, |
| 162 const CFX_AffineMatrix* pMatrix, FX_DWORD render
_flags, FX_LPVOID& handle, | 162 const CFX_AffineMatrix* pMatrix, FX_DWORD render
_flags, FX_LPVOID& handle, |
| 163 int alpha_flag, void* pIccTransform, int blend_t
ype); | 163 int alpha_flag, void* pIccTransform, int blend_t
ype); |
| 164 int m_HorzSize, m_VertSize; | 164 int m_HorzSize, m_VertSize; |
| 165 FX_BOOL m_bSupportROP; | 165 FX_BOOL m_bSupportROP; |
| 166 }; | 166 }; |
| 167 class CPSOutput : public IFX_PSOutput, public CFX_Object | 167 class CPSOutput : public IFX_PSOutput |
| 168 { | 168 { |
| 169 public: | 169 public: |
| 170 CPSOutput(HDC hDC); | 170 CPSOutput(HDC hDC); |
| 171 virtual ~CPSOutput(); | 171 virtual ~CPSOutput(); |
| 172 virtual void Release() | 172 virtual void Release() |
| 173 { | 173 { |
| 174 delete this; | 174 delete this; |
| 175 } | 175 } |
| 176 void Init(); | 176 void Init(); |
| 177 virtual void OutputPS(FX_LPCSTR string, int len); | 177 virtual void OutputPS(FX_LPCSTR string, int len); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 return (void*)m_hDC; | 229 return (void*)m_hDC; |
| 230 } | 230 } |
| 231 HDC m_hDC; | 231 HDC m_hDC; |
| 232 FX_BOOL m_bCmykOutput; | 232 FX_BOOL m_bCmykOutput; |
| 233 int m_Width, m_Height, m_nBitsPerPixel; | 233 int m_Width, m_Height, m_nBitsPerPixel; |
| 234 int m_HorzSize, m_VertSize; | 234 int m_HorzSize, m_VertSize; |
| 235 CPSOutput* m_pPSOutput; | 235 CPSOutput* m_pPSOutput; |
| 236 CFX_PSRenderer m_PSRenderer; | 236 CFX_PSRenderer m_PSRenderer; |
| 237 }; | 237 }; |
| 238 void _Color2Argb(FX_ARGB& argb, FX_DWORD color, int alpha_flag, void* pIccTransf
orm); | 238 void _Color2Argb(FX_ARGB& argb, FX_DWORD color, int alpha_flag, void* pIccTransf
orm); |
| OLD | NEW |