summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_imageloader.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/render/cpdf_imageloader.h')
-rw-r--r--core/fpdfapi/render/cpdf_imageloader.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/core/fpdfapi/render/cpdf_imageloader.h b/core/fpdfapi/render/cpdf_imageloader.h
index de29d0e2a9..7586d69cc2 100644
--- a/core/fpdfapi/render/cpdf_imageloader.h
+++ b/core/fpdfapi/render/cpdf_imageloader.h
@@ -16,6 +16,7 @@
class CPDF_ImageObject;
class CPDF_PageRenderCache;
class CPDF_RenderStatus;
+class CPDF_TransferFunc;
class PauseIndicatorIface;
class CPDF_ImageLoader {
@@ -31,14 +32,21 @@ class CPDF_ImageLoader {
CPDF_RenderStatus* pRenderStatus);
bool Continue(PauseIndicatorIface* pPause, CPDF_RenderStatus* pRenderStatus);
- RetainPtr<CFX_DIBBase> m_pBitmap;
- RetainPtr<CFX_DIBBase> m_pMask;
- uint32_t m_MatteColor;
- bool m_bCached;
+ RetainPtr<CFX_DIBBase> TranslateImage(
+ const RetainPtr<CPDF_TransferFunc>& pTransferFunc);
+
+ const RetainPtr<CFX_DIBBase>& GetBitmap() const { return m_pBitmap; }
+ const RetainPtr<CFX_DIBBase>& GetMask() const { return m_pMask; }
+ uint32_t MatteColor() const { return m_MatteColor; }
private:
void HandleFailure();
+ RetainPtr<CFX_DIBBase> m_pBitmap;
+ RetainPtr<CFX_DIBBase> m_pMask;
+ uint32_t m_MatteColor = 0;
+ bool m_bCached = false;
+
UnownedPtr<CPDF_PageRenderCache> m_pCache;
UnownedPtr<CPDF_ImageObject> m_pImageObject;
};