Guest User

Untitled

a guest
May 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.87 KB | None | 0 0
  1. commit cd47a7caceaab870246964987ae56e1c226ea0c6
  2. Author: Gareth Stockwell <ext-gareth.stockwell@nokia.com>
  3. Date:   Wed Jan 11 11:59:03 2012 +0000
  4.  
  5.     Add public API for releasing cached GPU resources on Symbian
  6.    
  7.     Task-number: ou1cimx1yyy964181
  8.     Reviewed-by: PENDING
  9.  
  10. diff --git a/src/gui/painting/qgraphicssystemhelper_symbian.cpp b/src/gui/painting/qgraphicssystemhelper_symbian.cpp
  11. index eb70247..a2414ef 100644
  12. --- a/src/gui/painting/qgraphicssystemhelper_symbian.cpp
  13. +++ b/src/gui/painting/qgraphicssystemhelper_symbian.cpp
  14. @@ -39,6 +39,9 @@
  15.  **
  16.  ****************************************************************************/
  17.  
  18. +#include "qapplication_p.h"
  19. +#include "qgraphicssystem_p.h"
  20. +#include "qgraphicssystemex_symbian_p.h"
  21.  #include "qgraphicssystemhelper_symbian.h"
  22.  #include "qt_s60_p.h"
  23.  #include "qwidget_p.h"
  24. @@ -138,4 +141,12 @@ void QSymbianGraphicsSystemHelper::setReceiveNativePaintEvents(QWidget *widget,
  25.      widgetPrivate->extraData()->receiveNativePaintEvents = value;
  26.  }
  27.  
  28. +void QSymbianGraphicsSystemHelper::releaseCachedGpuResources()
  29. +{
  30. +    QSymbianGraphicsSystemEx *ex = static_cast<QSymbianGraphicsSystemEx *>(
  31. +        QApplicationPrivate::graphicsSystem()->platformExtension());
  32. +    if (ex)
  33. +        ex->releaseCachedGpuResources();
  34. +}
  35. +
  36.  QT_END_NAMESPACE
  37. diff --git a/src/gui/painting/qgraphicssystemhelper_symbian.h b/src/gui/painting/qgraphicssystemhelper_symbian.h
  38. index b74144e..b08bba4 100644
  39. --- a/src/gui/painting/qgraphicssystemhelper_symbian.h
  40. +++ b/src/gui/painting/qgraphicssystemhelper_symbian.h
  41. @@ -72,6 +72,8 @@ public:
  42.      static void setNativePaintMode(QWidget *widget, NativePaintMode mode);
  43.      static void setNativePaintMode(WId wid, NativePaintMode mode);
  44.      static void setReceiveNativePaintEvents(QWidget *widget, bool value);
  45. +
  46. +    static void releaseCachedGpuResources();
  47.  };
  48.  
  49.  QT_END_NAMESPACE
Add Comment
Please, Sign In to add comment