Many efficiency improvements to text rendering. Moved stuff from Painter into AGGTextRenderer which didn't belong in Painter. AGGTextRenderer now has an embedded transformation, which expresses the font rotation and (in future) shear settings. Removed direct support for BBitmaps from Painter (supposed to draw ServerBitmaps). Tested drawing of bitmaps other than B_RGB32. (only B_CMAP8 and B_GRAY8 so far, but they work). Right now, these colorspaces are supported by on the fly conversion. So every colorspace supported by BBitmap::ImportBits() should work, which are a lot more than the R5 app_server can display.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12815 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -193,11 +193,7 @@ class Painter {
|
||||
const escapement_delta* delta = NULL);
|
||||
|
||||
// bitmaps
|
||||
void DrawBitmap( const BBitmap* bitmap,
|
||||
BRect bitmapRect,
|
||||
BRect viewRect) const;
|
||||
|
||||
void DrawBitmap( const ServerBitmap* bitmap,
|
||||
BRect DrawBitmap( const ServerBitmap* bitmap,
|
||||
BRect bitmapRect,
|
||||
BRect viewRect) const;
|
||||
|
||||
@@ -306,9 +302,6 @@ class Painter {
|
||||
// font file, it uses the FontManager to locate a file
|
||||
// by Family and Style
|
||||
AGGTextRenderer* fTextRenderer;
|
||||
uint32 fLastFamilyAndStyle;
|
||||
float fLastRotation;
|
||||
float fLastShear;
|
||||
};
|
||||
|
||||
// SetHighColor
|
||||
|
||||
Reference in New Issue
Block a user