From fed9dd90c086c854ef13440e6022602eb9f91cfc Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 17 Dec 2015 13:48:09 -0800 Subject: FX_NAMESPACE_DECLARE pointless. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1534003002 . --- core/include/fxcrt/fx_basic.h | 1 - core/src/fxge/agg/include/fx_agg_driver.h | 9 ++++----- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'core') diff --git a/core/include/fxcrt/fx_basic.h b/core/include/fxcrt/fx_basic.h index 6e7fbb4555..ef5b204049 100644 --- a/core/include/fxcrt/fx_basic.h +++ b/core/include/fxcrt/fx_basic.h @@ -1093,7 +1093,6 @@ typedef enum { Done } FX_ProgressiveStatus; #define ProgressiveStatus FX_ProgressiveStatus -#define FX_NAMESPACE_DECLARE(namespace, type) namespace ::type class CFX_Vector_3by1 { public: diff --git a/core/src/fxge/agg/include/fx_agg_driver.h b/core/src/fxge/agg/include/fx_agg_driver.h index 80febe1b4e..71569749fb 100644 --- a/core/src/fxge/agg/include/fx_agg_driver.h +++ b/core/src/fxge/agg/include/fx_agg_driver.h @@ -19,9 +19,10 @@ class CAgg_PathData { public: CAgg_PathData() {} ~CAgg_PathData() {} - FX_NAMESPACE_DECLARE(agg, path_storage) m_PathData; void BuildPath(const CFX_PathData* pPathData, const CFX_Matrix* pObject2Device); + + agg::path_storage m_PathData; }; class CFX_AggDeviceDriver : public IFX_RenderDeviceDriver { public: @@ -122,16 +123,14 @@ class CFX_AggDeviceDriver : public IFX_RenderDeviceDriver { void* pIccTransform) override; int GetDriverType() override { return 1; } - FX_BOOL RenderRasterizer(FX_NAMESPACE_DECLARE(agg, rasterizer_scanline_aa) & - rasterizer, + FX_BOOL RenderRasterizer(agg::rasterizer_scanline_aa& rasterizer, FX_DWORD color, FX_BOOL bFullCover, FX_BOOL bGroupKnockout, int alpha_flag, void* pIccTransform); - void SetClipMask(FX_NAMESPACE_DECLARE(agg, rasterizer_scanline_aa) & - rasterizer); + void SetClipMask(agg::rasterizer_scanline_aa& rasterizer); virtual uint8_t* GetBuffer() const { return m_pBitmap->GetBuffer(); } -- cgit v1.2.3