RemoteDrawingEngine: Whitespace cleanup and a simplification.
This commit is contained in:
@@ -802,9 +802,7 @@ RemoteDrawingEngine::FillTriangle(BPoint* points, const BRect& bounds,
|
|||||||
RemoteMessage message(NULL, fHWInterface->SendBuffer());
|
RemoteMessage message(NULL, fHWInterface->SendBuffer());
|
||||||
message.Start(RP_FILL_TRIANGLE_GRADIENT);
|
message.Start(RP_FILL_TRIANGLE_GRADIENT);
|
||||||
message.Add(fToken);
|
message.Add(fToken);
|
||||||
message.Add(points[0]);
|
message.AddList(points, 3);
|
||||||
message.Add(points[1]);
|
|
||||||
message.Add(points[2]);
|
|
||||||
message.Add(bounds);
|
message.Add(bounds);
|
||||||
message.AddGradient(gradient);
|
message.AddGradient(gradient);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ public:
|
|||||||
const BPoint& viewToScreenOffset,
|
const BPoint& viewToScreenOffset,
|
||||||
float viewScale);
|
float viewScale);
|
||||||
virtual void FillShape(const BRect& bounds,
|
virtual void FillShape(const BRect& bounds,
|
||||||
int32 opCount, const uint32* opList,
|
int32 opCount, const uint32* opList,
|
||||||
int32 pointCount, const BPoint* pointList,
|
int32 pointCount, const BPoint* pointList,
|
||||||
const BGradient& gradient,
|
const BGradient& gradient,
|
||||||
const BPoint& viewToScreenOffset,
|
const BPoint& viewToScreenOffset,
|
||||||
@@ -137,7 +137,7 @@ public:
|
|||||||
virtual BPoint DrawString(const char* string, int32 length,
|
virtual BPoint DrawString(const char* string, int32 length,
|
||||||
const BPoint& point,
|
const BPoint& point,
|
||||||
escapement_delta* delta = NULL);
|
escapement_delta* delta = NULL);
|
||||||
virtual BPoint DrawString(const char* string, int32 length,
|
virtual BPoint DrawString(const char* string, int32 length,
|
||||||
const BPoint* offsets);
|
const BPoint* offsets);
|
||||||
|
|
||||||
virtual float StringWidth(const char* string, int32 length,
|
virtual float StringWidth(const char* string, int32 length,
|
||||||
@@ -155,7 +155,7 @@ private:
|
|||||||
RemoteMessage& message);
|
RemoteMessage& message);
|
||||||
|
|
||||||
BRect _BuildBounds(BPoint* points, int32 pointCount);
|
BRect _BuildBounds(BPoint* points, int32 pointCount);
|
||||||
status_t _ExtractBitmapRegions(ServerBitmap& bitmap,
|
status_t _ExtractBitmapRegions(ServerBitmap& bitmap,
|
||||||
uint32 options, const BRect& bitmapRect,
|
uint32 options, const BRect& bitmapRect,
|
||||||
const BRect& viewRect, double xScale,
|
const BRect& viewRect, double xScale,
|
||||||
double yScale, BRegion& region,
|
double yScale, BRegion& region,
|
||||||
@@ -174,7 +174,8 @@ private:
|
|||||||
float fStringWidthResult;
|
float fStringWidthResult;
|
||||||
BBitmap* fReadBitmapResult;
|
BBitmap* fReadBitmapResult;
|
||||||
|
|
||||||
BitmapDrawingEngine* fBitmapDrawingEngine;
|
BitmapDrawingEngine*
|
||||||
|
fBitmapDrawingEngine;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // REMOTE_DRAWING_ENGINE_H
|
#endif // REMOTE_DRAWING_ENGINE_H
|
||||||
|
|||||||
Reference in New Issue
Block a user