INTEGRATION: CWS canvas05 (1.3.26); FILE MERGED
2008/04/21 07:32:46 thb 1.3.26.3: RESYNC: (1.3-1.4); FILE MERGED 2008/04/02 22:56:28 thb 1.3.26.2: Reworked Surface class to abstract interface; changed all manual refcount handling to RAII 2008/03/18 22:00:57 thb 1.3.26.1: Implementing non-backbuffered canvas for cairocanvas as well - reworked to share most of the code
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
* OpenOffice.org - a multi-platform office productivity suite
|
* OpenOffice.org - a multi-platform office productivity suite
|
||||||
*
|
*
|
||||||
* $RCSfile: cairo_spritehelper.hxx,v $
|
* $RCSfile: cairo_spritehelper.hxx,v $
|
||||||
* $Revision: 1.4 $
|
* $Revision: 1.5 $
|
||||||
*
|
*
|
||||||
* This file is part of OpenOffice.org.
|
* This file is part of OpenOffice.org.
|
||||||
*
|
*
|
||||||
@@ -78,12 +78,12 @@ namespace cairocanvas
|
|||||||
@param bShowSpriteBounds
|
@param bShowSpriteBounds
|
||||||
When true, little debug bound rects for sprites are shown
|
When true, little debug bound rects for sprites are shown
|
||||||
*/
|
*/
|
||||||
void init( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
|
void init( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
|
||||||
const SpriteCanvasRef& rSpriteCanvas );
|
const SpriteCanvasRef& rSpriteCanvas );
|
||||||
|
|
||||||
void disposing();
|
void disposing();
|
||||||
|
|
||||||
void setSurface( ::cairo::Surface* pBufferSurface );
|
void setSurface( const ::cairo::SurfaceSharedPtr& pBufferSurface );
|
||||||
|
|
||||||
/** Repaint sprite content to associated sprite canvas
|
/** Repaint sprite content to associated sprite canvas
|
||||||
|
|
||||||
@@ -99,20 +99,19 @@ namespace cairocanvas
|
|||||||
the front buffer, but within a VDev. Used to speed up
|
the front buffer, but within a VDev. Used to speed up
|
||||||
drawing.
|
drawing.
|
||||||
*/
|
*/
|
||||||
void redraw( ::cairo::Cairo* pCairo,
|
void redraw( const ::cairo::CairoSharedPtr& pCairo,
|
||||||
const ::basegfx::B2DPoint& rPos,
|
const ::basegfx::B2DPoint& rPos,
|
||||||
bool& bSurfacesDirty,
|
bool& bSurfacesDirty,
|
||||||
bool bBufferedUpdate ) const;
|
bool bBufferedUpdate ) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D(
|
virtual ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D(
|
||||||
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPoly ) const;
|
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPoly ) const;
|
||||||
|
|
||||||
|
|
||||||
SpriteCanvasRef mpSpriteCanvas;
|
SpriteCanvasRef mpSpriteCanvas;
|
||||||
mutable bool mbTextureDirty; // when true, texture needs update
|
::cairo::SurfaceSharedPtr mpBufferSurface;
|
||||||
|
mutable bool mbTextureDirty; // when true, texture needs update
|
||||||
::cairo::Surface* mpBufferSurface;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user