From 2dd20b4745a5876ca40106163799e89bf539b2cf Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Thu, 5 Nov 2015 14:22:09 +0000 Subject: Comment the quartz off-screen buffering code. Change-Id: Ie9a52745a83ca6e4281faa4f1dc8b8ea7411badf Reviewed-on: https://gerrit.libreoffice.org/19805 Tested-by: Jenkins Reviewed-by: Michael Meeks --- vcl/quartz/salgdiutils.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'vcl') diff --git a/vcl/quartz/salgdiutils.cxx b/vcl/quartz/salgdiutils.cxx index 58d1d45f810b..f1426203be7a 100644 --- a/vcl/quartz/salgdiutils.cxx +++ b/vcl/quartz/salgdiutils.cxx @@ -89,6 +89,10 @@ void AquaSalGraphics::UnsetState() } } +/** + * (re-)create the off-screen mxLayer we render everything to if + * necessary: eg. not initialized yet, or it has an incorrect size. + */ bool AquaSalGraphics::CheckContext() { if( mbWindow && mpFrame && mpFrame->getNSWindow() ) @@ -174,6 +178,11 @@ CGContextRef AquaSalGraphics::GetContext() return mrContext; } +/** + * Blit the contents of our internal mxLayer state to the + * associated window, if any; cf. drawRect event handling + * on the frame. + */ void AquaSalGraphics::UpdateWindow( NSRect& ) { if( !mpFrame ) -- cgit