Cocoa: Fix backing store performance regression.
authorMorten Johan Sørvig <morten.sorvig@theqtcompany.com>
Thu, 13 Aug 2015 19:42:10 +0000 (21:42 +0200)
committerMorten Johan Sørvig <morten.sorvig@theqtcompany.com>
Tue, 25 Aug 2015 13:51:00 +0000 (13:51 +0000)
commit53ecaade10319ecc1d8115521ae6d8eba1ee55c1
tree5ec190c05f6c7ddb45cd9531931ebc7164bbd0b9
parentdbb1e1936ca9ddc66d2032448da63edec651a77a
Cocoa: Fix backing store performance regression.

Commit 916dfcb8 introduced a regression where QNSView
would hold a copy if the backing store QImage, which
would cause a detach and deep copy if/when the image
was painted on while the copy was held.

Revert back to the previous share-by-pointer scheme.
Make sure the following bugs stays fixed:
    QTBUG-38377
    QTBUG-42206
    QTBUG-44313

Change-Id: Ib8049051d51947113f23b66ee61dc34c22388914
Task-number: QTBUG-46959
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
src/plugins/platforms/cocoa/qcocoabackingstore.mm
src/plugins/platforms/cocoa/qnsview.h
src/plugins/platforms/cocoa/qnsview.mm