diff options
author | Gareth Stockwell <gareth.stockwell@sosco.com> | 2009-10-07 16:04:44 (GMT) |
---|---|---|
committer | Gareth Stockwell <gareth.stockwell@sosco.com> | 2009-10-09 06:47:51 (GMT) |
commit | 37e34f7132298da5519f7f0466f91ed2670a1ac8 (patch) | |
tree | fafef2e6b5133f573a36475c89a76c128a09c02f /doc/src/snippets/code | |
parent | de36243273661c5844d417793f02c8db4a5b5da9 (diff) | |
download | Qt-37e34f7132298da5519f7f0466f91ed2670a1ac8.zip Qt-37e34f7132298da5519f7f0466f91ed2670a1ac8.tar.gz Qt-37e34f7132298da5519f7f0466f91ed2670a1ac8.tar.bz2 |
Preventing unnecessary calls to CVideoPlayerUtility::SetDisplayWindowL
getNativeWindowSystemHandles now checks the window handle and screen
rectangle against the previous value; SetDisplayWindowL is only called
if the window and/or screen rectangle have changed. This allows
videoOutputRegionChanged to be called 'speculatively' - i.e. in response
to Qt events which may or may not reflect a change in the underlying
window system - with only actual window system events getting propagated
into the MMF.
The reason for this change is that SetDisplayWindowL results in the
current DSA session (owned by CVideoPlayerUtility) being torn down and
a new one set up. This in turn requires handshaking with the window
server, and may be slow.
Reviewed-by: Frans Englich
Diffstat (limited to 'doc/src/snippets/code')
0 files changed, 0 insertions, 0 deletions