diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2010-11-18 11:06:41 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2010-11-18 12:48:48 (GMT) |
commit | 7eb560609cf1fc82f897a9a67c76e42b06823f9b (patch) | |
tree | 1312637c076b5c7f1f88cc3de6233720025c8186 /src/gui/painting/qgrayraster_p.h | |
parent | 77218177d44bb120e4cb558cadeadc0bcf6c3cab (diff) | |
download | Qt-7eb560609cf1fc82f897a9a67c76e42b06823f9b.zip Qt-7eb560609cf1fc82f897a9a67c76e42b06823f9b.tar.gz Qt-7eb560609cf1fc82f897a9a67c76e42b06823f9b.tar.bz2 |
Some optimizations for the gray-raster (raster engine antialiasing).
Increase the size of the initial memory pool (it's anyways free'd later
on) to improve the performance of the rasterizer and also decrease the
chance of re-allocations.
Also, by combining gray_record_cell and gray_find_cell into one
function, as gray_find_cell is only called from the former, we can skip
some unnecessary operations.
Measured performance improvements range from 58 % to 154 % for rounded
rect filling and stroking.
Reviewed-by: Andreas Kling
Diffstat (limited to 'src/gui/painting/qgrayraster_p.h')
-rw-r--r-- | src/gui/painting/qgrayraster_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qgrayraster_p.h b/src/gui/painting/qgrayraster_p.h index ad595b8..d610a9a 100644 --- a/src/gui/painting/qgrayraster_p.h +++ b/src/gui/painting/qgrayraster_p.h @@ -91,7 +91,7 @@ /* Minimum buffer size for raster object, that accounts for TWorker and TCell sizes.*/ -#define MINIMUM_POOL_SIZE 4096 +#define MINIMUM_POOL_SIZE 8192 QT_FT_EXPORT_VAR( const QT_FT_Raster_Funcs ) qt_ft_grays_raster; |