| 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 _FX_GE_H_ | 7 #ifndef _FX_GE_H_ |
| 8 #define _FX_GE_H_ | 8 #define _FX_GE_H_ |
| 9 #ifndef _FX_DIB_H_ | 9 #ifndef _FX_DIB_H_ |
| 10 #include "fx_dib.h" | 10 #include "fx_dib.h" |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 | 483 |
| 484 ~CFX_FxgeDevice(); | 484 ~CFX_FxgeDevice(); |
| 485 | 485 |
| 486 FX_BOOL Attach(CFX_DIBitmap* pBitmap, int dither_bits =
0, FX_BOOL bRgbByteOrder = FALSE, CFX_DIBitmap* pOriDevice = NULL, FX_BOOL bGrou
pKnockout = FALSE); | 486 FX_BOOL Attach(CFX_DIBitmap* pBitmap, int dither_bits =
0, FX_BOOL bRgbByteOrder = FALSE, CFX_DIBitmap* pOriDevice = NULL, FX_BOOL bGrou
pKnockout = FALSE); |
| 487 | 487 |
| 488 FX_BOOL Create(int width, int height, FXDIB_Format forma
t, int dither_bits = 0, CFX_DIBitmap* pOriDevice = NULL); | 488 FX_BOOL Create(int width, int height, FXDIB_Format forma
t, int dither_bits = 0, CFX_DIBitmap* pOriDevice = NULL); |
| 489 protected: | 489 protected: |
| 490 | 490 |
| 491 FX_BOOL m_bOwnedBitmap; | 491 FX_BOOL m_bOwnedBitmap; |
| 492 }; | 492 }; |
| 493 class CFX_SkiaDevice : public CFX_RenderDevice | |
| 494 { | |
| 495 public: | |
| 496 | |
| 497 CFX_SkiaDevice(); | |
| 498 | |
| 499 ~CFX_SkiaDevice(); | |
| 500 | |
| 501 FX_BOOL Attach(CFX_DIBitmap* pBitmap, int dither_bits =
0, FX_BOOL bRgbByteOrder = FALSE, CFX_DIBitmap* pOriDevice = NULL, FX_BOOL bGrou
pKnockout = FALSE); | |
| 502 | |
| 503 FX_BOOL Create(int width, int height, FXDIB_Format forma
t, int dither_bits = 0, CFX_DIBitmap* pOriDevice = NULL); | |
| 504 protected: | |
| 505 | |
| 506 FX_BOOL m_bOwnedBitmap; | |
| 507 }; | |
| 508 class IFX_RenderDeviceDriver : public CFX_Object | 493 class IFX_RenderDeviceDriver : public CFX_Object |
| 509 { | 494 { |
| 510 public: | 495 public: |
| 511 | 496 |
| 512 static IFX_RenderDeviceDriver* CreateFxgeDriver(CFX_DIBitmap* p
Bitmap, FX_BOOL bRgbByteOrder = FALSE, | 497 static IFX_RenderDeviceDriver* CreateFxgeDriver(CFX_DIBitmap* p
Bitmap, FX_BOOL bRgbByteOrder = FALSE, |
| 513 CFX_DIBitmap* pOriDevice = NULL, FX_BOOL bGroupKnockout = FALSE); | 498 CFX_DIBitmap* pOriDevice = NULL, FX_BOOL bGroupKnockout = FALSE); |
| 514 | 499 |
| 515 virtual ~IFX_RenderDeviceDriver() {} | 500 virtual ~IFX_RenderDeviceDriver() {} |
| 516 virtual void Begin() { } | 501 virtual void Begin() { } |
| 517 virtual void End() { } | 502 virtual void End() { } |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 { | 616 { |
| 632 return 0; | 617 return 0; |
| 633 } | 618 } |
| 634 | 619 |
| 635 virtual void ClearDriver() {} | 620 virtual void ClearDriver() {} |
| 636 }; | 621 }; |
| 637 class IFX_PSOutput | 622 class IFX_PSOutput |
| 638 { | 623 { |
| 639 public: | 624 public: |
| 640 | 625 |
| 641 virtual void» OutputPS(FX_LPCSTR string, int len) = 0; | 626 virtual void OutputPS(FX_LPCSTR string, int len) = 0; |
| 642 virtual void Release() = 0; | 627 virtual void Release() = 0; |
| 643 }; | 628 }; |
| 644 class CPSFont; | 629 class CPSFont; |
| 645 class CFX_PSRenderer : public CFX_Object | 630 class CFX_PSRenderer : public CFX_Object |
| 646 { | 631 { |
| 647 public: | 632 public: |
| 648 | 633 |
| 649 CFX_PSRenderer(); | 634 CFX_PSRenderer(); |
| 650 | 635 |
| 651 ~CFX_PSRenderer(); | 636 ~CFX_PSRenderer(); |
| 652 | 637 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 | 709 |
| 725 void SetGraphState(const CFX_GraphStateData* pGraphSt
ate); | 710 void SetGraphState(const CFX_GraphStateData* pGraphSt
ate); |
| 726 | 711 |
| 727 void SetColor(FX_DWORD color, int alpha_flag, void* p
IccTransform); | 712 void SetColor(FX_DWORD color, int alpha_flag, void* p
IccTransform); |
| 728 | 713 |
| 729 void FindPSFontGlyph(CFX_FaceCache* pFaceCache, CFX_F
ont* pFont, const FXTEXT_CHARPOS& charpos, int& ps_fontnum, int &ps_glyphindex); | 714 void FindPSFontGlyph(CFX_FaceCache* pFaceCache, CFX_F
ont* pFont, const FXTEXT_CHARPOS& charpos, int& ps_fontnum, int &ps_glyphindex); |
| 730 | 715 |
| 731 void WritePSBinary(FX_LPCBYTE data, int len); | 716 void WritePSBinary(FX_LPCBYTE data, int len); |
| 732 }; | 717 }; |
| 733 #endif | 718 #endif |
| OLD | NEW |