summaryrefslogtreecommitdiff
path: root/core/fxge/apple/apple_int.h
diff options
context:
space:
mode:
authornpm <npm@chromium.org>2016-11-07 08:50:04 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-07 08:50:04 -0800
commita97fc7c6392c0adbd702bdf898cb9e20cee00a3e (patch)
tree4b01387c72b701444c8b67a0f777e99f03012c1f /core/fxge/apple/apple_int.h
parent5756a77fa289ce1ef18bd7f2da75a39575ead9fe (diff)
downloadpdfium-a97fc7c6392c0adbd702bdf898cb9e20cee00a3e.tar.xz
Remove unused CFX_QuartzDevice(Driver) classes.chromium/2913
Review-Url: https://codereview.chromium.org/2484453002
Diffstat (limited to 'core/fxge/apple/apple_int.h')
-rw-r--r--core/fxge/apple/apple_int.h104
1 files changed, 0 insertions, 104 deletions
diff --git a/core/fxge/apple/apple_int.h b/core/fxge/apple/apple_int.h
index 9881e17a88..fed6abcfb0 100644
--- a/core/fxge/apple/apple_int.h
+++ b/core/fxge/apple/apple_int.h
@@ -9,17 +9,13 @@
#include "core/fxcrt/fx_system.h"
-#if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_
-
#include "core/fxge/cfx_graphstatedata.h"
#include "core/fxge/cfx_pathdata.h"
#include "core/fxge/cfx_renderdevice.h"
#include "core/fxge/fx_dib.h"
#include "core/fxge/ifx_renderdevicedriver.h"
-#if _FX_OS_ == _FX_MACOSX_
#include <Carbon/Carbon.h>
-#endif
class CQuartz2D {
public:
@@ -49,104 +45,4 @@ class CApplePlatform {
CQuartz2D m_quartz2d;
};
-class CFX_QuartzDeviceDriver : public IFX_RenderDeviceDriver {
- public:
- CFX_QuartzDeviceDriver(CGContextRef context, int32_t deviceClass);
- ~CFX_QuartzDeviceDriver() override;
-
- // IFX_RenderDeviceDriver
- int GetDeviceCaps(int caps_id) const override;
- CFX_Matrix GetCTM() const override;
- void SaveState() override;
- void RestoreState(bool bKeepSaved) override;
- bool SetClip_PathFill(const CFX_PathData* pPathData,
- const CFX_Matrix* pObject2Device,
- int fill_mode) override;
- bool SetClip_PathStroke(const CFX_PathData* pPathData,
- const CFX_Matrix* pObject2Device,
- const CFX_GraphStateData* pGraphState) override;
- bool DrawPath(const CFX_PathData* pPathData,
- const CFX_Matrix* pObject2Device,
- const CFX_GraphStateData* pGraphState,
- uint32_t fill_color,
- uint32_t stroke_color,
- int fill_mode,
- int blend_type) override;
- bool FillRectWithBlend(const FX_RECT* pRect,
- uint32_t fill_color,
- int blend_type) override;
- bool DrawCosmeticLine(FX_FLOAT x1,
- FX_FLOAT y1,
- FX_FLOAT x2,
- FX_FLOAT y2,
- uint32_t color,
- int blend_type) override;
- bool GetClipBox(FX_RECT* pRect) override;
- bool GetDIBits(CFX_DIBitmap* pBitmap, int left, int top) override;
- bool SetDIBits(const CFX_DIBSource* pBitmap,
- uint32_t color,
- const FX_RECT* pSrcRect,
- int dest_left,
- int dest_top,
- int blend_type) override;
- bool StretchDIBits(const CFX_DIBSource* pBitmap,
- uint32_t color,
- int dest_left,
- int dest_top,
- int dest_width,
- int dest_height,
- const FX_RECT* pClipRect,
- uint32_t flags,
- int blend_type) override;
- bool StartDIBits(const CFX_DIBSource* pBitmap,
- int bitmap_alpha,
- uint32_t color,
- const CFX_Matrix* pMatrix,
- uint32_t flags,
- void*& handle,
- int blend_type) override;
- bool DrawDeviceText(int nChars,
- const FXTEXT_CHARPOS* pCharPos,
- CFX_Font* pFont,
- const CFX_Matrix* pObject2Device,
- FX_FLOAT font_size,
- uint32_t color) override;
- void ClearDriver() override;
-
- protected:
- void setStrokeInfo(const CFX_GraphStateData* graphState,
- FX_ARGB argb,
- FX_FLOAT lineWidth);
- void setFillInfo(FX_ARGB argb);
- void setPathToContext(const CFX_PathData* pathData);
- FX_FLOAT getLineWidth(const CFX_GraphStateData* graphState,
- CGAffineTransform ctm);
- bool CG_DrawGlyphRun(int nChars,
- const FXTEXT_CHARPOS* pCharPos,
- CFX_Font* pFont,
- const CFX_Matrix* pGlyphMatrix,
- const CFX_Matrix* pObject2Device,
- FX_FLOAT font_size,
- uint32_t argb);
- void CG_SetImageTransform(int dest_left,
- int dest_top,
- int dest_width,
- int dest_height,
- CGRect* rect);
-
- CGContextRef m_context;
- CGAffineTransform m_foxitDevice2User;
- CGAffineTransform m_user2FoxitDevice;
- int32_t m_saveCount;
-
- int32_t m_width;
- int32_t m_height;
- int32_t m_bitsPerPixel;
- int32_t m_deviceClass;
- int32_t m_renderCaps;
- int32_t m_horzSize;
- int32_t m_vertSize;
-};
-#endif // _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_
-
#endif // CORE_FXGE_APPLE_APPLE_INT_H_