From e354c4b4f28ec5e67817fe3161ce163bd60e4748 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 30 Jan 2009 16:18:58 +0000 Subject: Got rid of VectorRenderer::surfacePitch() & VectorRenderer::bytesPerPixel(): the latter was not used, for the former it is silly to go through a virtual method to compute that value; all in all, this code performs too many unnecessary divisions ;) svn-id: r36151 --- graphics/VectorRendererSpec.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'graphics/VectorRendererSpec.h') diff --git a/graphics/VectorRendererSpec.h b/graphics/VectorRendererSpec.h index 90adb77759..045882c955 100644 --- a/graphics/VectorRendererSpec.h +++ b/graphics/VectorRendererSpec.h @@ -207,24 +207,6 @@ protected: while (first != last) blendPixelPtr(first++, color, alpha); } - /** - * Fills several pixels in a row with a given color. - * - * This is a replacement function for Common::set_to, using an unrolled - * loop to maximize performance on most architectures. - * This function may (and should) be overloaded in any child renderers - * for portable platforms with platform-specific assembly code. - * - * This fill operation is extensively used throughout the renderer, so this - * counts as one of the main bottlenecks. Please replace it with assembly - * when possible! - * - * @param first Pointer to the first pixel to fill. - * @param last Pointer to the last pixel to fill. - * @param color Color of the pixel - */ - inline void colorFill(PixelType *first, PixelType *last, PixelType color); - PixelType _fgColor; /**< Foreground color currently being used to draw on the renderer */ PixelType _bgColor; /**< Background color currently being used to draw on the renderer */ -- cgit v1.2.3