Guest User

Untitled

a guest
Jul 17th, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. commit cf59cb4b047df6a4f89e0fb7e517e0d2841fc3c2
  2. Author: Andreas Kling <andreas.kling@nokia.com>
  3. Date: Mon Dec 13 20:53:04 2010 +0100
  4.  
  5. qrgb565: Use the trivial qt_memconvert() and qt_rectconvert()
  6.  
  7. Use memcpy() instead of the generic conversion routines where both template
  8. arguments are qrgb565. Yields a massive performance gain for tiling opaque
  9. (background) images in WebKit on 16-bit displays.
  10.  
  11. This was previously restricted to Q_WS_QWS for some unknown reason.
  12.  
  13. Reviewed-by: ?
  14.  
  15. diff --git a/src/gui/painting/qdrawhelper_p.h b/src/gui/painting/qdrawhelper_p.h
  16. index 2a2873a..0d9d0e9 100644
  17. --- a/src/gui/painting/qdrawhelper_p.h
  18. +++ b/src/gui/painting/qdrawhelper_p.h
  19. @@ -1684,9 +1684,7 @@ QT_TRIVIAL_MEMCONVERT_IMPL(qrgb888)
  20. QT_TRIVIAL_MEMCONVERT_IMPL(qargb6666)
  21. QT_TRIVIAL_MEMCONVERT_IMPL(qrgb666)
  22. QT_TRIVIAL_MEMCONVERT_IMPL(quint16)
  23. -#ifdef Q_WS_QWS
  24. QT_TRIVIAL_MEMCONVERT_IMPL(qrgb565)
  25. -#endif
  26. QT_TRIVIAL_MEMCONVERT_IMPL(qargb8565)
  27. QT_TRIVIAL_MEMCONVERT_IMPL(qargb8555)
  28. QT_TRIVIAL_MEMCONVERT_IMPL(qrgb555)
  29. @@ -1783,9 +1781,7 @@ QT_RECTCONVERT_TRIVIAL_IMPL(quint32)
  30. QT_RECTCONVERT_TRIVIAL_IMPL(qrgb888)
  31. QT_RECTCONVERT_TRIVIAL_IMPL(qargb6666)
  32. QT_RECTCONVERT_TRIVIAL_IMPL(qrgb666)
  33. -#ifdef Q_WS_QWS
  34. QT_RECTCONVERT_TRIVIAL_IMPL(qrgb565)
  35. -#endif
  36. QT_RECTCONVERT_TRIVIAL_IMPL(qargb8565)
  37. QT_RECTCONVERT_TRIVIAL_IMPL(quint16)
  38. QT_RECTCONVERT_TRIVIAL_IMPL(qargb8555)
Add Comment
Please, Sign In to add comment