[Libreoffice-commits] core.git: desktop/source
Tor Lillqvist
tml at collabora.com
Mon Jul 25 09:38:17 UTC 2016
desktop/source/app/opencl.cxx | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
New commits:
commit 718d55d141dbb9cfc23a80490f4aeb90d4ff338c
Author: Tor Lillqvist <tml at collabora.com>
Date: Mon Jul 25 12:37:16 2016 +0300
Fix some misleading comments
Change-Id: I0f29133c3e9b881835b970b2226583ec348828cb
diff --git a/desktop/source/app/opencl.cxx b/desktop/source/app/opencl.cxx
index 4c75ae7..521d225 100644
--- a/desktop/source/app/opencl.cxx
+++ b/desktop/source/app/opencl.cxx
@@ -158,7 +158,7 @@ void Desktop::CheckOpenCLCompute(const Reference< XDesktop2 > &xDesktop)
// OpenCL device changed - sanity check it and disable if bad.
boost::optional<sal_Int32> nOrigMinimumSize = officecfg::Office::Calc::Formula::Calculation::OpenCLMinimumDataSize::get();
- { // set the group size to something small for quick testing.
+ { // set the minumum group size to something small for quick testing.
std::shared_ptr<comphelper::ConfigurationChanges> xBatch(comphelper::ConfigurationChanges::create());
officecfg::Office::Calc::Formula::Calculation::OpenCLMinimumDataSize::set(3 /* small */, xBatch);
xBatch->commit();
@@ -166,11 +166,9 @@ void Desktop::CheckOpenCLCompute(const Reference< XDesktop2 > &xDesktop)
bool bSucceeded = testOpenCLCompute(xDesktop, aURL);
- // it passed -> save the device.
- {
+ { // restore the minimum group size
std::shared_ptr<comphelper::ConfigurationChanges> xBatch(comphelper::ConfigurationChanges::create());
officecfg::Office::Calc::Formula::Calculation::OpenCLMinimumDataSize::set(nOrigMinimumSize, xBatch);
- // allow the user to subsequently manually enable it.
officecfg::Office::Common::Misc::SelectedOpenCLDeviceIdentifier::set(aSelectedCLDeviceVersionID, xBatch);
xBatch->commit();
}
More information about the Libreoffice-commits
mailing list