summaryrefslogtreecommitdiff
path: root/core/fxge/fx_dib.h
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-03-31 15:39:44 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-03-31 20:16:52 +0000
commitbdbb0bd92bfca52e574106c4ce5f93d9d34d3373 (patch)
tree9fa4af5211b7bc655d73d7410af36a3e14e3cbb6 /core/fxge/fx_dib.h
parenteb39cdb2efbc66e4566ba1f150cab7983362e13f (diff)
downloadpdfium-bdbb0bd92bfca52e574106c4ce5f93d9d34d3373.tar.xz
Split fx_dib part 3
Moved CFX_ImageRenderer, CFX_ImageTransformer to their own files. Change-Id: Ic98403f62bea317600a933f79946a2a9bad30eeb Reviewed-on: https://pdfium-review.googlesource.com/3551 Commit-Queue: Nicolás Peña <npm@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxge/fx_dib.h')
-rw-r--r--core/fxge/fx_dib.h64
1 files changed, 0 insertions, 64 deletions
diff --git a/core/fxge/fx_dib.h b/core/fxge/fx_dib.h
index f768afddaa..2a111ac05f 100644
--- a/core/fxge/fx_dib.h
+++ b/core/fxge/fx_dib.h
@@ -265,68 +265,4 @@ class CFX_ImageStretcher {
int m_LineIndex;
};
-class CFX_ImageTransformer {
- public:
- CFX_ImageTransformer(const CFX_RetainPtr<CFX_DIBSource>& pSrc,
- const CFX_Matrix* pMatrix,
- int flags,
- const FX_RECT* pClip);
- ~CFX_ImageTransformer();
-
- bool Start();
- bool Continue(IFX_Pause* pPause);
-
- const FX_RECT& result() const { return m_result; }
- CFX_RetainPtr<CFX_DIBitmap> DetachBitmap();
-
- private:
- const CFX_RetainPtr<CFX_DIBSource> m_pSrc;
- const CFX_Matrix* const m_pMatrix;
- const FX_RECT* const m_pClip;
- FX_RECT m_StretchClip;
- FX_RECT m_result;
- CFX_Matrix m_dest2stretch;
- std::unique_ptr<CFX_ImageStretcher> m_Stretcher;
- CFX_BitmapStorer m_Storer;
- const uint32_t m_Flags;
- int m_Status;
-};
-
-class CFX_ImageRenderer {
- public:
- CFX_ImageRenderer();
- ~CFX_ImageRenderer();
-
- bool Start(const CFX_RetainPtr<CFX_DIBitmap>& pDevice,
- const CFX_ClipRgn* pClipRgn,
- const CFX_RetainPtr<CFX_DIBSource>& pSource,
- int bitmap_alpha,
- uint32_t mask_color,
- const CFX_Matrix* pMatrix,
- uint32_t dib_flags,
- bool bRgbByteOrder = false,
- int alpha_flag = 0,
- void* pIccTransform = nullptr,
- int blend_type = FXDIB_BLEND_NORMAL);
-
- bool Continue(IFX_Pause* pPause);
-
- protected:
- CFX_RetainPtr<CFX_DIBitmap> m_pDevice;
- const CFX_ClipRgn* m_pClipRgn;
- int m_BitmapAlpha;
- uint32_t m_MaskColor;
- CFX_Matrix m_Matrix;
- std::unique_ptr<CFX_ImageTransformer> m_pTransformer;
- std::unique_ptr<CFX_ImageStretcher> m_Stretcher;
- CFX_BitmapComposer m_Composer;
- int m_Status;
- FX_RECT m_ClipBox;
- uint32_t m_Flags;
- int m_AlphaFlag;
- void* m_pIccTransform;
- bool m_bRgbByteOrder;
- int m_BlendType;
-};
-
#endif // CORE_FXGE_FX_DIB_H_