summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_imagerenderer.h
diff options
context:
space:
mode:
authornpm <npm@chromium.org>2016-11-28 13:51:28 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-28 13:51:28 -0800
commit3c0f366daafed42495b22ecbdda8f21f3f939d9b (patch)
treef19adaa6c18647789d827f03770014f4271ca7a9 /core/fpdfapi/render/cpdf_imagerenderer.h
parent239915200225fea4c5a02e9630044ef13fccb66d (diff)
downloadpdfium-3c0f366daafed42495b22ecbdda8f21f3f939d9b.tar.xz
Add some methods in CPDF_ImageRenderer
Made a member private and added some methods to reduce code duplication Review-Url: https://codereview.chromium.org/2531643002
Diffstat (limited to 'core/fpdfapi/render/cpdf_imagerenderer.h')
-rw-r--r--core/fpdfapi/render/cpdf_imagerenderer.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/core/fpdfapi/render/cpdf_imagerenderer.h b/core/fpdfapi/render/cpdf_imagerenderer.h
index b0550e7441..d358716e9f 100644
--- a/core/fpdfapi/render/cpdf_imagerenderer.h
+++ b/core/fpdfapi/render/cpdf_imagerenderer.h
@@ -11,6 +11,7 @@
#include "core/fpdfapi/render/cpdf_imageloader.h"
+class CFX_FxgeDevice;
class CFX_ImageTransformer;
class CPDF_ImageObject;
class CPDF_PageObject;
@@ -38,8 +39,7 @@ class CPDF_ImageRenderer {
int blendType);
bool Continue(IFX_Pause* pPause);
-
- bool m_Result;
+ bool GetResult() const { return m_Result; }
private:
bool StartBitmapAlpha();
@@ -48,6 +48,14 @@ class CPDF_ImageRenderer {
bool StartLoadDIBSource();
bool DrawMaskedImage();
bool DrawPatternImage(const CFX_Matrix* pObj2Device);
+ bool NotDrawing() const;
+ FX_RECT GetDrawRect() const;
+ CFX_Matrix GetDrawMatrix(const FX_RECT& rect) const;
+ void CalculateDrawImage(CFX_FxgeDevice* bitmap_device1,
+ CFX_FxgeDevice* bitmap_device2,
+ const CFX_DIBSource* pDIBSource,
+ CFX_Matrix* pNewMatrix,
+ const FX_RECT& rect) const;
CPDF_RenderStatus* m_pRenderStatus;
CPDF_ImageObject* m_pImageObject;
@@ -66,6 +74,7 @@ class CPDF_ImageRenderer {
void* m_DeviceHandle;
bool m_bStdCS;
int m_BlendType;
+ bool m_Result;
};
#endif // CORE_FPDFAPI_RENDER_CPDF_IMAGERENDERER_H_