Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2393)

Unified Diff: core/fxge/apple/apple_int.h

Issue 2484453002: Remove unused CFX_QuartzDevice(Driver) classes. (Closed)
Patch Set: Rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.gn ('k') | core/fxge/apple/cfx_quartzdevice.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fxge/apple/apple_int.h
diff --git a/core/fxge/apple/apple_int.h b/core/fxge/apple/apple_int.h
index 9881e17a8813b756276cd246d472fff48151858a..fed6abcfb09d1dd1e7dd9a5b05fcfa2398e4a212 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_
npm 2016/11/07 16:02:38 Also removing this as it looks like its equivalent
#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_
« no previous file with comments | « BUILD.gn ('k') | core/fxge/apple/cfx_quartzdevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698