[Libreoffice-commits] core.git: vcl/quartz
Michael Meeks
michael.meeks at collabora.com
Thu Nov 5 10:08:45 PST 2015
vcl/quartz/salgdiutils.cxx | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit 2dd20b4745a5876ca40106163799e89bf539b2cf
Author: Michael Meeks <michael.meeks at collabora.com>
Date: Thu Nov 5 14:22:09 2015 +0000
Comment the quartz off-screen buffering code.
Change-Id: Ie9a52745a83ca6e4281faa4f1dc8b8ea7411badf
Reviewed-on: https://gerrit.libreoffice.org/19805
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
diff --git a/vcl/quartz/salgdiutils.cxx b/vcl/quartz/salgdiutils.cxx
index 58d1d45..f142620 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 )
More information about the Libreoffice-commits
mailing list