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:
Kurt Zenker
2008-06-24 09:26:15 +00:00
parent f9a889105f
commit ef2a3925ea

View File

@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: cairo_spritehelper.hxx,v $
* $Revision: 1.4 $
* $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
@@ -78,12 +78,12 @@ namespace cairocanvas
@param bShowSpriteBounds
When true, little debug bound rects for sprites are shown
*/
void init( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
const SpriteCanvasRef& rSpriteCanvas );
void init( const ::com::sun::star::geometry::RealSize2D& rSpriteSize,
const SpriteCanvasRef& rSpriteCanvas );
void disposing();
void setSurface( ::cairo::Surface* pBufferSurface );
void setSurface( const ::cairo::SurfaceSharedPtr& pBufferSurface );
/** Repaint sprite content to associated sprite canvas
@@ -99,20 +99,19 @@ namespace cairocanvas
the front buffer, but within a VDev. Used to speed up
drawing.
*/
void redraw( ::cairo::Cairo* pCairo,
const ::basegfx::B2DPoint& rPos,
bool& bSurfacesDirty,
bool bBufferedUpdate ) const;
void redraw( const ::cairo::CairoSharedPtr& pCairo,
const ::basegfx::B2DPoint& rPos,
bool& bSurfacesDirty,
bool bBufferedUpdate ) const;
private:
virtual ::basegfx::B2DPolyPolygon polyPolygonFromXPolyPolygon2D(
::com::sun::star::uno::Reference< ::com::sun::star::rendering::XPolyPolygon2D >& xPoly ) const;
SpriteCanvasRef mpSpriteCanvas;
mutable bool mbTextureDirty; // when true, texture needs update
::cairo::Surface* mpBufferSurface;
SpriteCanvasRef mpSpriteCanvas;
::cairo::SurfaceSharedPtr mpBufferSurface;
mutable bool mbTextureDirty; // when true, texture needs update
};
}