summaryrefslogtreecommitdiff
path: root/core/fxge/dib
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxge/dib')
-rw-r--r--core/fxge/dib/cfx_dibsource.cpp2
-rw-r--r--core/fxge/dib/cfx_dibsource.h3
-rw-r--r--core/fxge/dib/cfx_imagerenderer.cpp2
-rw-r--r--core/fxge/dib/cfx_imagerenderer.h2
-rw-r--r--core/fxge/dib/cfx_imagestretcher.cpp6
-rw-r--r--core/fxge/dib/cfx_imagestretcher.h7
-rw-r--r--core/fxge/dib/cfx_imagetransformer.cpp2
-rw-r--r--core/fxge/dib/cfx_imagetransformer.h2
-rw-r--r--core/fxge/dib/cstretchengine.cpp5
-rw-r--r--core/fxge/dib/cstretchengine.h5
10 files changed, 20 insertions, 16 deletions
diff --git a/core/fxge/dib/cfx_dibsource.cpp b/core/fxge/dib/cfx_dibsource.cpp
index 3a2179660f..c0e7841b89 100644
--- a/core/fxge/dib/cfx_dibsource.cpp
+++ b/core/fxge/dib/cfx_dibsource.cpp
@@ -629,7 +629,7 @@ uint8_t* CFX_DIBSource::GetBuffer() const {
return nullptr;
}
-bool CFX_DIBSource::SkipToScanline(int line, IFX_Pause* pPause) const {
+bool CFX_DIBSource::SkipToScanline(int line, IFX_PauseIndicator* pPause) const {
return false;
}
diff --git a/core/fxge/dib/cfx_dibsource.h b/core/fxge/dib/cfx_dibsource.h
index 798e092d16..8b6d960de6 100644
--- a/core/fxge/dib/cfx_dibsource.h
+++ b/core/fxge/dib/cfx_dibsource.h
@@ -27,6 +27,7 @@ enum FXDIB_Channel {
class CFX_ClipRgn;
class CFX_DIBitmap;
+class IFX_PauseIndicator;
class CFX_DIBSource : public CFX_Retainable {
public:
@@ -34,7 +35,7 @@ class CFX_DIBSource : public CFX_Retainable {
virtual uint8_t* GetBuffer() const;
virtual const uint8_t* GetScanline(int line) const = 0;
- virtual bool SkipToScanline(int line, IFX_Pause* pPause) const;
+ virtual bool SkipToScanline(int line, IFX_PauseIndicator* pPause) const;
virtual void DownSampleScanline(int line,
uint8_t* dest_scan,
int dest_bpp,
diff --git a/core/fxge/dib/cfx_imagerenderer.cpp b/core/fxge/dib/cfx_imagerenderer.cpp
index 6448014ba5..2330fe0587 100644
--- a/core/fxge/dib/cfx_imagerenderer.cpp
+++ b/core/fxge/dib/cfx_imagerenderer.cpp
@@ -88,7 +88,7 @@ CFX_ImageRenderer::CFX_ImageRenderer(
CFX_ImageRenderer::~CFX_ImageRenderer() {}
-bool CFX_ImageRenderer::Continue(IFX_Pause* pPause) {
+bool CFX_ImageRenderer::Continue(IFX_PauseIndicator* pPause) {
if (m_Status == 1)
return m_Stretcher->Continue(pPause);
if (m_Status != 2)
diff --git a/core/fxge/dib/cfx_imagerenderer.h b/core/fxge/dib/cfx_imagerenderer.h
index 97427ceb91..068fe34a89 100644
--- a/core/fxge/dib/cfx_imagerenderer.h
+++ b/core/fxge/dib/cfx_imagerenderer.h
@@ -33,7 +33,7 @@ class CFX_ImageRenderer {
bool bRgbByteOrder);
~CFX_ImageRenderer();
- bool Continue(IFX_Pause* pPause);
+ bool Continue(IFX_PauseIndicator* pPause);
private:
const CFX_RetainPtr<CFX_DIBitmap> m_pDevice;
diff --git a/core/fxge/dib/cfx_imagestretcher.cpp b/core/fxge/dib/cfx_imagestretcher.cpp
index 3c0a065868..0b7c542b30 100644
--- a/core/fxge/dib/cfx_imagestretcher.cpp
+++ b/core/fxge/dib/cfx_imagestretcher.cpp
@@ -125,7 +125,7 @@ bool CFX_ImageStretcher::Start() {
return StartStretch();
}
-bool CFX_ImageStretcher::Continue(IFX_Pause* pPause) {
+bool CFX_ImageStretcher::Continue(IFX_PauseIndicator* pPause) {
if (m_Flags & FXDIB_DOWNSAMPLE)
return ContinueQuickStretch(pPause);
return ContinueStretch(pPause);
@@ -143,7 +143,7 @@ bool CFX_ImageStretcher::StartStretch() {
return true;
}
-bool CFX_ImageStretcher::ContinueStretch(IFX_Pause* pPause) {
+bool CFX_ImageStretcher::ContinueStretch(IFX_PauseIndicator* pPause) {
return m_pStretchEngine && m_pStretchEngine->Continue(pPause);
}
@@ -172,7 +172,7 @@ bool CFX_ImageStretcher::StartQuickStretch() {
return true;
}
-bool CFX_ImageStretcher::ContinueQuickStretch(IFX_Pause* pPause) {
+bool CFX_ImageStretcher::ContinueQuickStretch(IFX_PauseIndicator* pPause) {
if (!m_pScanline)
return false;
diff --git a/core/fxge/dib/cfx_imagestretcher.h b/core/fxge/dib/cfx_imagestretcher.h
index 45928ee141..f31669b866 100644
--- a/core/fxge/dib/cfx_imagestretcher.h
+++ b/core/fxge/dib/cfx_imagestretcher.h
@@ -15,6 +15,7 @@
#include "core/fxge/fx_dib.h"
class CFX_DIBSource;
+class IFX_PauseIndicator;
class CFX_ImageStretcher {
public:
@@ -27,15 +28,15 @@ class CFX_ImageStretcher {
~CFX_ImageStretcher();
bool Start();
- bool Continue(IFX_Pause* pPause);
+ bool Continue(IFX_PauseIndicator* pPause);
CFX_RetainPtr<CFX_DIBSource> source() { return m_pSource; }
private:
bool StartQuickStretch();
bool StartStretch();
- bool ContinueQuickStretch(IFX_Pause* pPause);
- bool ContinueStretch(IFX_Pause* pPause);
+ bool ContinueQuickStretch(IFX_PauseIndicator* pPause);
+ bool ContinueStretch(IFX_PauseIndicator* pPause);
CFX_UnownedPtr<IFX_ScanlineComposer> const m_pDest;
CFX_RetainPtr<CFX_DIBSource> m_pSource;
diff --git a/core/fxge/dib/cfx_imagetransformer.cpp b/core/fxge/dib/cfx_imagetransformer.cpp
index c05dd795b5..e64a2645da 100644
--- a/core/fxge/dib/cfx_imagetransformer.cpp
+++ b/core/fxge/dib/cfx_imagetransformer.cpp
@@ -244,7 +244,7 @@ CFX_ImageTransformer::CFX_ImageTransformer(
CFX_ImageTransformer::~CFX_ImageTransformer() {}
-bool CFX_ImageTransformer::Continue(IFX_Pause* pPause) {
+bool CFX_ImageTransformer::Continue(IFX_PauseIndicator* pPause) {
if (m_Status == 1) {
if (m_Stretcher->Continue(pPause))
return true;
diff --git a/core/fxge/dib/cfx_imagetransformer.h b/core/fxge/dib/cfx_imagetransformer.h
index 60e4714a65..694c44c932 100644
--- a/core/fxge/dib/cfx_imagetransformer.h
+++ b/core/fxge/dib/cfx_imagetransformer.h
@@ -25,7 +25,7 @@ class CFX_ImageTransformer {
const FX_RECT* pClip);
~CFX_ImageTransformer();
- bool Continue(IFX_Pause* pPause);
+ bool Continue(IFX_PauseIndicator* pPause);
const FX_RECT& result() const { return m_result; }
CFX_RetainPtr<CFX_DIBitmap> DetachBitmap();
diff --git a/core/fxge/dib/cstretchengine.cpp b/core/fxge/dib/cstretchengine.cpp
index b5cf4a781d..4822d32b83 100644
--- a/core/fxge/dib/cstretchengine.cpp
+++ b/core/fxge/dib/cstretchengine.cpp
@@ -9,6 +9,7 @@
#include <algorithm>
#include <utility>
+#include "core/fxcrt/ifx_pauseindicator.h"
#include "core/fxge/dib/cfx_dibitmap.h"
#include "core/fxge/dib/cfx_dibsource.h"
#include "core/fxge/dib/ifx_scanlinecomposer.h"
@@ -310,7 +311,7 @@ CStretchEngine::CStretchEngine(IFX_ScanlineComposer* pDestBitmap,
CStretchEngine::~CStretchEngine() {}
-bool CStretchEngine::Continue(IFX_Pause* pPause) {
+bool CStretchEngine::Continue(IFX_PauseIndicator* pPause) {
while (m_State == 1) {
if (ContinueStretchHorz(pPause))
return true;
@@ -347,7 +348,7 @@ bool CStretchEngine::StartStretchHorz() {
return true;
}
-bool CStretchEngine::ContinueStretchHorz(IFX_Pause* pPause) {
+bool CStretchEngine::ContinueStretchHorz(IFX_PauseIndicator* pPause) {
if (!m_DestWidth)
return false;
if (m_pSource->SkipToScanline(m_CurRow, pPause))
diff --git a/core/fxge/dib/cstretchengine.h b/core/fxge/dib/cstretchengine.h
index 049059361e..dd207af30d 100644
--- a/core/fxge/dib/cstretchengine.h
+++ b/core/fxge/dib/cstretchengine.h
@@ -13,6 +13,7 @@
#include "core/fxcrt/fx_coordinates.h"
#include "core/fxge/fx_dib.h"
+class IFX_PauseIndicator;
class IFX_ScanlineComposer;
class CStretchEngine {
@@ -26,10 +27,10 @@ class CStretchEngine {
int flags);
~CStretchEngine();
- bool Continue(IFX_Pause* pPause);
+ bool Continue(IFX_PauseIndicator* pPause);
bool StartStretchHorz();
- bool ContinueStretchHorz(IFX_Pause* pPause);
+ bool ContinueStretchHorz(IFX_PauseIndicator* pPause);
void StretchVert();
class CWeightTable {