Skip to content

Commit

Permalink
Remove visual noise from canvas
Browse files Browse the repository at this point in the history
Change-Id: I0f01a4064ab6d1f55647ecdc1a8710e289e5d96c
  • Loading branch information
Alexander Wilms authored and thorstenb committed Feb 25, 2014
1 parent 8448d13 commit 8747200
Show file tree
Hide file tree
Showing 25 changed files with 183 additions and 183 deletions.
2 changes: 1 addition & 1 deletion canvas/source/cairo/cairo_spritecanvashelper.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ namespace cairocanvas


// SpriteRedrawManager functor calls
// -------------------------------------------------


/** Gets called for simple background repaints
*/
Expand Down
2 changes: 1 addition & 1 deletion canvas/source/cairo/cairo_xlib_cairo.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace
{
// The X protocol request CreatePixmap puts an upper bound
// of 16 bit to the size.
//

// see, e.g. moz#424333, fdo#48961
// we've a duplicate of this in vcl :-(
if (width > SAL_MAX_INT16 || height > SAL_MAX_INT16)
Expand Down
124 changes: 62 additions & 62 deletions canvas/source/directx/dx_9rm.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,17 @@

using namespace ::com::sun::star;

//////////////////////////////////////////////////////////////////////////////////

// 'dxcanvas' namespace
//////////////////////////////////////////////////////////////////////////////////


namespace dxcanvas
{
namespace
{
//////////////////////////////////////////////////////////////////////////////////

// monitorSupport
//////////////////////////////////////////////////////////////////////////////////


class monitorSupport
{
Expand Down Expand Up @@ -127,9 +127,9 @@ namespace dxcanvas

class DXRenderModule;

//////////////////////////////////////////////////////////////////////////////////

// DXSurface
//////////////////////////////////////////////////////////////////////////////////


/** ISurface implemenation.
Expand Down Expand Up @@ -173,9 +173,9 @@ namespace dxcanvas
};


//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule
//////////////////////////////////////////////////////////////////////////////////


/// Default implementation of IDXRenderModule
class DXRenderModule : public IDXRenderModule
Expand Down Expand Up @@ -256,9 +256,9 @@ namespace dxcanvas

::osl::Mutex DXRenderModule::maMutex;

//////////////////////////////////////////////////////////////////////////////////

// DXSurface::ImplRenderModuleGuard
//////////////////////////////////////////////////////////////////////////////////


inline DXSurface::ImplRenderModuleGuard::ImplRenderModuleGuard(
DXRenderModule& rRenderModule ) :
Expand Down Expand Up @@ -296,9 +296,9 @@ namespace dxcanvas
}
}

//////////////////////////////////////////////////////////////////////////////////

// DXSurface::DXSurface
//////////////////////////////////////////////////////////////////////////////////


DXSurface::DXSurface( DXRenderModule& rRenderModule,
const ::basegfx::B2ISize& rSize ) :
Expand Down Expand Up @@ -339,9 +339,9 @@ namespace dxcanvas
maSize = rSize;
}

//////////////////////////////////////////////////////////////////////////////////

// DXSurface::~DXSurface
//////////////////////////////////////////////////////////////////////////////////


DXSurface::~DXSurface()
{
Expand All @@ -352,9 +352,9 @@ namespace dxcanvas
#endif
}

//////////////////////////////////////////////////////////////////////////////////

// DXSurface::selectTexture
//////////////////////////////////////////////////////////////////////////////////


bool DXSurface::selectTexture()
{
Expand All @@ -368,9 +368,9 @@ namespace dxcanvas
return true;
}

//////////////////////////////////////////////////////////////////////////////////

// DXSurface::isValid
//////////////////////////////////////////////////////////////////////////////////


bool DXSurface::isValid()
{
Expand All @@ -381,9 +381,9 @@ namespace dxcanvas
return true;
}

//////////////////////////////////////////////////////////////////////////////////

// DXSurface::update
//////////////////////////////////////////////////////////////////////////////////


bool DXSurface::update( const ::basegfx::B2IPoint& rDestPos,
const ::basegfx::B2IRange& rSourceRect,
Expand Down Expand Up @@ -545,9 +545,9 @@ namespace dxcanvas
return true;
}

//////////////////////////////////////////////////////////////////////////////////

// DXSurface::getSize
//////////////////////////////////////////////////////////////////////////////////


::basegfx::B2IVector DXSurface::getSize()
{
Expand All @@ -559,9 +559,9 @@ namespace dxcanvas
return mpTexture;
}

//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule::DXRenderModule
//////////////////////////////////////////////////////////////////////////////////


DXRenderModule::DXRenderModule( const ::Window& rWindow ) :
mhWnd(0),
Expand Down Expand Up @@ -628,18 +628,18 @@ namespace dxcanvas
mpVertexBuffer=COMReference<IDirect3DVertexBuffer9>(pVB);
}

//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule::~DXRenderModule
//////////////////////////////////////////////////////////////////////////////////


DXRenderModule::~DXRenderModule()
{
disposing();
}

//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule::disposing
//////////////////////////////////////////////////////////////////////////////////


void DXRenderModule::disposing()
{
Expand All @@ -656,9 +656,9 @@ namespace dxcanvas
// objects are dead.
}

//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule::create
//////////////////////////////////////////////////////////////////////////////////


bool DXRenderModule::create( const ::Window& rWindow )
{
Expand Down Expand Up @@ -722,9 +722,9 @@ namespace dxcanvas
return true;
}

//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule::verifyDevice
//////////////////////////////////////////////////////////////////////////////////


bool DXRenderModule::verifyDevice( const UINT nAdapter )
{
Expand Down Expand Up @@ -778,9 +778,9 @@ namespace dxcanvas
}


//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule::createDevice
//////////////////////////////////////////////////////////////////////////////////


bool DXRenderModule::createDevice()
{
Expand Down Expand Up @@ -881,9 +881,9 @@ namespace dxcanvas
return true;
}

//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule::createSystemMemorySurface
//////////////////////////////////////////////////////////////////////////////////


COMReference<IDirect3DSurface9> DXRenderModule::createSystemMemorySurface( const ::basegfx::B2IVector& rSize )
{
Expand All @@ -909,9 +909,9 @@ namespace dxcanvas
return COMReference<IDirect3DSurface9>(pSurface);
}

//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule::flip
//////////////////////////////////////////////////////////////////////////////////


bool DXRenderModule::flip( const ::basegfx::B2IRectangle& rUpdateArea,
const ::basegfx::B2IRectangle& /*rCurrWindowArea*/ )
Expand Down Expand Up @@ -979,17 +979,17 @@ namespace dxcanvas
return true;
}

//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule::screenShot
//////////////////////////////////////////////////////////////////////////////////


void DXRenderModule::screenShot()
{
}

//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule::resize
//////////////////////////////////////////////////////////////////////////////////


void DXRenderModule::resize( const ::basegfx::B2IRange& rect )
{
Expand Down Expand Up @@ -1049,9 +1049,9 @@ namespace dxcanvas
}
}

//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule::getPageSize
//////////////////////////////////////////////////////////////////////////////////


::basegfx::B2IVector DXRenderModule::getPageSize()
{
Expand All @@ -1060,9 +1060,9 @@ namespace dxcanvas
return maPageSize;
}

//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule::createSurface
//////////////////////////////////////////////////////////////////////////////////


::canvas::ISurfaceSharedPtr DXRenderModule::createSurface( const ::basegfx::B2IVector& surfaceSize )
{
Expand All @@ -1085,9 +1085,9 @@ namespace dxcanvas
return ::canvas::ISurfaceSharedPtr( new DXSurface(*this,aSize) );
}

//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule::beginPrimitive
//////////////////////////////////////////////////////////////////////////////////


void DXRenderModule::beginPrimitive( PrimitiveType eType )
{
Expand All @@ -1105,9 +1105,9 @@ namespace dxcanvas
mnCount=0;
}

//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule::endPrimitive
//////////////////////////////////////////////////////////////////////////////////


void DXRenderModule::endPrimitive()
{
Expand All @@ -1122,9 +1122,9 @@ namespace dxcanvas
mnCount=0;
}

//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule::pushVertex
//////////////////////////////////////////////////////////////////////////////////


void DXRenderModule::pushVertex( const ::canvas::Vertex& vertex )
{
Expand Down Expand Up @@ -1170,9 +1170,9 @@ namespace dxcanvas
}
}

//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule::isError
//////////////////////////////////////////////////////////////////////////////////


bool DXRenderModule::isError()
{
Expand All @@ -1182,9 +1182,9 @@ namespace dxcanvas
return mbError;
}

//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule::getAdapterFromWindow
//////////////////////////////////////////////////////////////////////////////////


UINT DXRenderModule::getAdapterFromWindow()
{
Expand All @@ -1196,9 +1196,9 @@ namespace dxcanvas
return static_cast<UINT>(-1);
}

//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule::commitVertexCache
//////////////////////////////////////////////////////////////////////////////////


void DXRenderModule::commitVertexCache()
{
Expand All @@ -1224,9 +1224,9 @@ namespace dxcanvas
}
}

//////////////////////////////////////////////////////////////////////////////////

// DXRenderModule::flushVertexCache
//////////////////////////////////////////////////////////////////////////////////


void DXRenderModule::flushVertexCache()
{
Expand Down Expand Up @@ -1332,9 +1332,9 @@ namespace dxcanvas
}
}

//////////////////////////////////////////////////////////////////////////////////

// createRenderModule
//////////////////////////////////////////////////////////////////////////////////


IDXRenderModuleSharedPtr createRenderModule( const ::Window& rParent )
{
Expand Down
4 changes: 2 additions & 2 deletions canvas/source/directx/dx_bitmap.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ using namespace ::com::sun::star;

namespace dxcanvas
{
//////////////////////////////////////////////////////////////////////////////////

// DXBitmap::DXBitmap
//////////////////////////////////////////////////////////////////////////////////


DXBitmap::DXBitmap( const BitmapSharedPtr& rBitmap,
bool bWithAlpha ) :
Expand Down
Loading

0 comments on commit 8747200

Please sign in to comment.