summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-11-05 14:22:09 +0000
committerMichael Meeks <michael.meeks@collabora.com>2015-11-05 18:08:18 +0000
commit2dd20b4745a5876ca40106163799e89bf539b2cf (patch)
tree707b405f2150b64f6e302eff8788be255ebfc29d /vcl
parentd7144b71eeb132b00bd555495d9547c3b859ceaa (diff)
Comment the quartz off-screen buffering code.
Change-Id: Ie9a52745a83ca6e4281faa4f1dc8b8ea7411badf Reviewed-on: https://gerrit.libreoffice.org/19805 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/quartz/salgdiutils.cxx9
1 files changed, 9 insertions, 0 deletions
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 )