Skip to content

Commit 3ca2be6

Browse files
committed
cache-weight: Use 32bit per pixel as estimate
1 parent f128951 commit 3ca2be6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pdfrenderfactory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@
3333
namespace {
3434
/** Estimates size in bytes of a rendered Page
3535
*
36-
* This currently assumes 24 bit (3 byte) per pixel, and no
36+
* This currently assumes 32 bit (4 byte) per pixel, and no
3737
* overhead.
3838
*/
3939
int cacheCost(const RenderedPage& renderedPage) {
4040
const QSize imageSize = renderedPage.getImage().size();
41-
return 3 * imageSize.width() * imageSize.height();
41+
return 4 * imageSize.width() * imageSize.height();
4242
}
4343
}
4444

0 commit comments

Comments
 (0)