diff options
author | Jason Barron <jbarron@trolltech.com> | 2010-02-22 12:54:20 (GMT) |
---|---|---|
committer | Jason Barron <jbarron@trolltech.com> | 2010-02-23 10:35:43 (GMT) |
commit | 925dac20184820222765385b391a78d776ee61bb (patch) | |
tree | f4c7a5a5a39b979ec75b9960ce551a36fdab47e3 /src/gui | |
parent | bbb996e6cbe4a19ceb72650dd82a8b3cf60553db (diff) | |
download | Qt-925dac20184820222765385b391a78d776ee61bb.zip Qt-925dac20184820222765385b391a78d776ee61bb.tar.gz Qt-925dac20184820222765385b391a78d776ee61bb.tar.bz2 |
Enable window size caching on Symbian NGA variants.
Enabling this flag saves us the round-trip to WSERV whenever
RWindow::Size() is called because the size is cached on the client
side. This can improve performance because functions like
eglSwapBuffers() call Size() to see if the window size has changed and
without the cache this introduces an extra IPC call for every frame.
Task-number: QT-2849
Reviewed-by: Iain
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qapplication_s60.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp index bf3ad71..fdbbeb2 100644 --- a/src/gui/kernel/qapplication_s60.cpp +++ b/src/gui/kernel/qapplication_s60.cpp @@ -1146,6 +1146,10 @@ void qt_init(QApplicationPrivate * /* priv */, int) #endif S60->wsSession().SetAutoFlush(ETrue); +#ifdef Q_SYMBIAN_WINDOW_SIZE_CACHE + TRAP_IGNORE(S60->wsSession().EnableWindowSizeCacheL()); +#endif + S60->updateScreenSize(); |