| 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_INCLUDE_FXGE_FX_GE_H_ | 7 #ifndef CORE_INCLUDE_FXGE_FX_GE_H_ |
| 8 #define CORE_INCLUDE_FXGE_FX_GE_H_ | 8 #define CORE_INCLUDE_FXGE_FX_GE_H_ |
| 9 | 9 |
| 10 #include "core/include/fxge/fx_dib.h" | 10 #include "core/include/fxge/fx_dib.h" |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 int m_DeviceClass; | 405 int m_DeviceClass; |
| 406 FX_RECT m_ClipBox; | 406 FX_RECT m_ClipBox; |
| 407 IFX_RenderDeviceDriver* m_pDeviceDriver; | 407 IFX_RenderDeviceDriver* m_pDeviceDriver; |
| 408 }; | 408 }; |
| 409 | 409 |
| 410 class CFX_FxgeDevice : public CFX_RenderDevice { | 410 class CFX_FxgeDevice : public CFX_RenderDevice { |
| 411 public: | 411 public: |
| 412 CFX_FxgeDevice(); | 412 CFX_FxgeDevice(); |
| 413 ~CFX_FxgeDevice() override; | 413 ~CFX_FxgeDevice() override; |
| 414 | 414 |
| 415 FX_BOOL Attach(CFX_DIBitmap* pBitmap, | 415 bool Attach(CFX_DIBitmap* pBitmap, |
| 416 int dither_bits = 0, | 416 int dither_bits = 0, |
| 417 FX_BOOL bRgbByteOrder = FALSE, | 417 bool bRgbByteOrder = false, |
| 418 CFX_DIBitmap* pOriDevice = NULL, | 418 CFX_DIBitmap* pOriDevice = NULL, |
| 419 FX_BOOL bGroupKnockout = FALSE); | 419 bool bGroupKnockout = false); |
| 420 | 420 |
| 421 FX_BOOL Create(int width, | 421 bool Create(int width, |
| 422 int height, | 422 int height, |
| 423 FXDIB_Format format, | 423 FXDIB_Format format, |
| 424 int dither_bits = 0, | 424 int dither_bits = 0, |
| 425 CFX_DIBitmap* pOriDevice = NULL); | 425 CFX_DIBitmap* pOriDevice = NULL); |
| 426 | 426 |
| 427 protected: | 427 protected: |
| 428 FX_BOOL m_bOwnedBitmap; | 428 bool m_bOwnedBitmap; |
| 429 }; | 429 }; |
| 430 class CFX_SkiaDevice : public CFX_RenderDevice { | 430 class CFX_SkiaDevice : public CFX_RenderDevice { |
| 431 public: | 431 public: |
| 432 CFX_SkiaDevice(); | 432 CFX_SkiaDevice(); |
| 433 ~CFX_SkiaDevice() override; | 433 ~CFX_SkiaDevice() override; |
| 434 | 434 |
| 435 FX_BOOL Attach(CFX_DIBitmap* pBitmap, | 435 FX_BOOL Attach(CFX_DIBitmap* pBitmap, |
| 436 int dither_bits = 0, | 436 int dither_bits = 0, |
| 437 FX_BOOL bRgbByteOrder = FALSE, | 437 FX_BOOL bRgbByteOrder = FALSE, |
| 438 CFX_DIBitmap* pOriDevice = NULL, | 438 CFX_DIBitmap* pOriDevice = NULL, |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 void FindPSFontGlyph(CFX_FaceCache* pFaceCache, | 701 void FindPSFontGlyph(CFX_FaceCache* pFaceCache, |
| 702 CFX_Font* pFont, | 702 CFX_Font* pFont, |
| 703 const FXTEXT_CHARPOS& charpos, | 703 const FXTEXT_CHARPOS& charpos, |
| 704 int& ps_fontnum, | 704 int& ps_fontnum, |
| 705 int& ps_glyphindex); | 705 int& ps_glyphindex); |
| 706 | 706 |
| 707 void WritePSBinary(const uint8_t* data, int len); | 707 void WritePSBinary(const uint8_t* data, int len); |
| 708 }; | 708 }; |
| 709 | 709 |
| 710 #endif // CORE_INCLUDE_FXGE_FX_GE_H_ | 710 #endif // CORE_INCLUDE_FXGE_FX_GE_H_ |
| OLD | NEW |