| 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_FXGE_INCLUDE_FX_GE_H_ | 7 #ifndef CORE_FXGE_INCLUDE_FX_GE_H_ |
| 8 #define CORE_FXGE_INCLUDE_FX_GE_H_ | 8 #define CORE_FXGE_INCLUDE_FX_GE_H_ |
| 9 | 9 |
| 10 #include "core/fxge/include/fx_dib.h" | 10 #include "core/fxge/include/fx_dib.h" |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 public: | 209 public: |
| 210 CFX_RenderDevice(); | 210 CFX_RenderDevice(); |
| 211 virtual ~CFX_RenderDevice(); | 211 virtual ~CFX_RenderDevice(); |
| 212 | 212 |
| 213 void SetDeviceDriver(IFX_RenderDeviceDriver* pDriver); | 213 void SetDeviceDriver(IFX_RenderDeviceDriver* pDriver); |
| 214 IFX_RenderDeviceDriver* GetDeviceDriver() const { return m_pDeviceDriver; } | 214 IFX_RenderDeviceDriver* GetDeviceDriver() const { return m_pDeviceDriver; } |
| 215 | 215 |
| 216 FX_BOOL StartRendering(); | 216 FX_BOOL StartRendering(); |
| 217 void EndRendering(); | 217 void EndRendering(); |
| 218 void SaveState(); | 218 void SaveState(); |
| 219 void RestoreState(FX_BOOL bKeepSaved = FALSE); | 219 void RestoreState(bool bKeepSaved); |
| 220 | 220 |
| 221 int GetWidth() const { return m_Width; } | 221 int GetWidth() const { return m_Width; } |
| 222 int GetHeight() const { return m_Height; } | 222 int GetHeight() const { return m_Height; } |
| 223 int GetDeviceClass() const { return m_DeviceClass; } | 223 int GetDeviceClass() const { return m_DeviceClass; } |
| 224 int GetBPP() const { return m_bpp; } | 224 int GetBPP() const { return m_bpp; } |
| 225 int GetRenderCaps() const { return m_RenderCaps; } | 225 int GetRenderCaps() const { return m_RenderCaps; } |
| 226 int GetDeviceCaps(int id) const; | 226 int GetDeviceCaps(int id) const; |
| 227 CFX_Matrix GetCTM() const; | 227 CFX_Matrix GetCTM() const; |
| 228 | 228 |
| 229 CFX_DIBitmap* GetBitmap() const { return m_pBitmap; } | 229 CFX_DIBitmap* GetBitmap() const { return m_pBitmap; } |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 virtual CFX_Matrix GetCTM() const { return CFX_Matrix(); } | 424 virtual CFX_Matrix GetCTM() const { return CFX_Matrix(); } |
| 425 | 425 |
| 426 virtual FX_BOOL IsPSPrintDriver() { return FALSE; } | 426 virtual FX_BOOL IsPSPrintDriver() { return FALSE; } |
| 427 | 427 |
| 428 virtual FX_BOOL StartRendering() { return TRUE; } | 428 virtual FX_BOOL StartRendering() { return TRUE; } |
| 429 | 429 |
| 430 virtual void EndRendering() {} | 430 virtual void EndRendering() {} |
| 431 | 431 |
| 432 virtual void SaveState() = 0; | 432 virtual void SaveState() = 0; |
| 433 | 433 |
| 434 virtual void RestoreState(FX_BOOL bKeepSaved = FALSE) = 0; | 434 virtual void RestoreState(bool bKeepSaved) = 0; |
| 435 | 435 |
| 436 virtual FX_BOOL SetClip_PathFill(const CFX_PathData* pPathData, | 436 virtual FX_BOOL SetClip_PathFill(const CFX_PathData* pPathData, |
| 437 const CFX_Matrix* pObject2Device, | 437 const CFX_Matrix* pObject2Device, |
| 438 int fill_mode) = 0; | 438 int fill_mode) = 0; |
| 439 | 439 |
| 440 virtual FX_BOOL SetClip_PathStroke(const CFX_PathData* pPathData, | 440 virtual FX_BOOL SetClip_PathStroke(const CFX_PathData* pPathData, |
| 441 const CFX_Matrix* pObject2Device, | 441 const CFX_Matrix* pObject2Device, |
| 442 const CFX_GraphStateData* pGraphState) { | 442 const CFX_GraphStateData* pGraphState) { |
| 443 return FALSE; | 443 return FALSE; |
| 444 } | 444 } |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 ~CFX_PSRenderer(); | 568 ~CFX_PSRenderer(); |
| 569 | 569 |
| 570 void Init(IFX_PSOutput* pOutput, | 570 void Init(IFX_PSOutput* pOutput, |
| 571 int ps_level, | 571 int ps_level, |
| 572 int width, | 572 int width, |
| 573 int height, | 573 int height, |
| 574 FX_BOOL bCmykOutput); | 574 FX_BOOL bCmykOutput); |
| 575 FX_BOOL StartRendering(); | 575 FX_BOOL StartRendering(); |
| 576 void EndRendering(); | 576 void EndRendering(); |
| 577 void SaveState(); | 577 void SaveState(); |
| 578 void RestoreState(FX_BOOL bKeepSaved = FALSE); | 578 void RestoreState(bool bKeepSaved); |
| 579 void SetClip_PathFill(const CFX_PathData* pPathData, | 579 void SetClip_PathFill(const CFX_PathData* pPathData, |
| 580 const CFX_Matrix* pObject2Device, | 580 const CFX_Matrix* pObject2Device, |
| 581 int fill_mode); | 581 int fill_mode); |
| 582 void SetClip_PathStroke(const CFX_PathData* pPathData, | 582 void SetClip_PathStroke(const CFX_PathData* pPathData, |
| 583 const CFX_Matrix* pObject2Device, | 583 const CFX_Matrix* pObject2Device, |
| 584 const CFX_GraphStateData* pGraphState); | 584 const CFX_GraphStateData* pGraphState); |
| 585 FX_RECT GetClipBox() { return m_ClipBox; } | 585 FX_RECT GetClipBox() { return m_ClipBox; } |
| 586 FX_BOOL DrawPath(const CFX_PathData* pPathData, | 586 FX_BOOL DrawPath(const CFX_PathData* pPathData, |
| 587 const CFX_Matrix* pObject2Device, | 587 const CFX_Matrix* pObject2Device, |
| 588 const CFX_GraphStateData* pGraphState, | 588 const CFX_GraphStateData* pGraphState, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 FX_BOOL m_bCmykOutput; | 641 FX_BOOL m_bCmykOutput; |
| 642 FX_BOOL m_bColorSet; | 642 FX_BOOL m_bColorSet; |
| 643 uint32_t m_LastColor; | 643 uint32_t m_LastColor; |
| 644 FX_RECT m_ClipBox; | 644 FX_RECT m_ClipBox; |
| 645 CFX_ArrayTemplate<CPSFont*> m_PSFontList; | 645 CFX_ArrayTemplate<CPSFont*> m_PSFontList; |
| 646 CFX_ArrayTemplate<FX_RECT> m_ClipBoxStack; | 646 CFX_ArrayTemplate<FX_RECT> m_ClipBoxStack; |
| 647 FX_BOOL m_bInited; | 647 FX_BOOL m_bInited; |
| 648 }; | 648 }; |
| 649 | 649 |
| 650 #endif // CORE_FXGE_INCLUDE_FX_GE_H_ | 650 #endif // CORE_FXGE_INCLUDE_FX_GE_H_ |
| OLD | NEW |