summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qnsview.mm
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-03-19 16:59:24 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-03-20 12:56:57 +0000
commit941aea658fe8948e842763612cef7b34b8633448 (patch)
tree3f97b6aa27614e95926226757c4f23b288a443f7 /src/plugins/platforms/cocoa/qnsview.mm
parent9b604a151a6ee603506001434d16b063df3f48b1 (diff)
macOS: Do layer updates via the CALayerDelegate protocol
The updateLayer function is only called when the layer is a _NSViewBackingLayer instance, which is what the default implementation of [NSView makeBackingLayer] returns. Once we move to optionally returning a CAMetalLayer, we need to use the more generic displayLayer: API, so we do that now as a first step. This matches the way we draw and send expose events on iOS. Change-Id: I49721ff005ca9dfddebff645705f96b5ab46abb4 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa/qnsview.mm')
-rw-r--r--src/plugins/platforms/cocoa/qnsview.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/cocoa/qnsview.mm b/src/plugins/platforms/cocoa/qnsview.mm
index 5ac55c523b..7c23c03218 100644
--- a/src/plugins/platforms/cocoa/qnsview.mm
+++ b/src/plugins/platforms/cocoa/qnsview.mm
@@ -74,7 +74,7 @@
- (BOOL)isTransparentForUserInput;
@end
-@interface QT_MANGLE_NAMESPACE(QNSView) (Drawing)
+@interface QT_MANGLE_NAMESPACE(QNSView) (Drawing) <CALayerDelegate>
@end
@interface QT_MANGLE_NAMESPACE(QNSViewMouseMoveHelper) : NSObject