Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commit cf59cb4b047df6a4f89e0fb7e517e0d2841fc3c2
- Author: Andreas Kling <andreas.kling@nokia.com>
- Date: Mon Dec 13 20:53:04 2010 +0100
- qrgb565: Use the trivial qt_memconvert() and qt_rectconvert()
- Use memcpy() instead of the generic conversion routines where both template
- arguments are qrgb565. Yields a massive performance gain for tiling opaque
- (background) images in WebKit on 16-bit displays.
- This was previously restricted to Q_WS_QWS for some unknown reason.
- Reviewed-by: ?
- diff --git a/src/gui/painting/qdrawhelper_p.h b/src/gui/painting/qdrawhelper_p.h
- index 2a2873a..0d9d0e9 100644
- --- a/src/gui/painting/qdrawhelper_p.h
- +++ b/src/gui/painting/qdrawhelper_p.h
- @@ -1684,9 +1684,7 @@ QT_TRIVIAL_MEMCONVERT_IMPL(qrgb888)
- QT_TRIVIAL_MEMCONVERT_IMPL(qargb6666)
- QT_TRIVIAL_MEMCONVERT_IMPL(qrgb666)
- QT_TRIVIAL_MEMCONVERT_IMPL(quint16)
- -#ifdef Q_WS_QWS
- QT_TRIVIAL_MEMCONVERT_IMPL(qrgb565)
- -#endif
- QT_TRIVIAL_MEMCONVERT_IMPL(qargb8565)
- QT_TRIVIAL_MEMCONVERT_IMPL(qargb8555)
- QT_TRIVIAL_MEMCONVERT_IMPL(qrgb555)
- @@ -1783,9 +1781,7 @@ QT_RECTCONVERT_TRIVIAL_IMPL(quint32)
- QT_RECTCONVERT_TRIVIAL_IMPL(qrgb888)
- QT_RECTCONVERT_TRIVIAL_IMPL(qargb6666)
- QT_RECTCONVERT_TRIVIAL_IMPL(qrgb666)
- -#ifdef Q_WS_QWS
- QT_RECTCONVERT_TRIVIAL_IMPL(qrgb565)
- -#endif
- QT_RECTCONVERT_TRIVIAL_IMPL(qargb8565)
- QT_RECTCONVERT_TRIVIAL_IMPL(quint16)
- QT_RECTCONVERT_TRIVIAL_IMPL(qargb8555)
Add Comment
Please, Sign In to add comment