Kaydet (Commit) 7741e4c2 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

some temporary debug output

üst b3d7fd2a
......@@ -169,6 +169,11 @@ CanvasFactory::CanvasFactory( Reference<XComponentContext> const & xContext ) :
xNameAccess, UNO_QUERY_THROW);
Sequence<OUString> serviceNames = xNameAccess->getElementNames();
for (sal_Int32 i = 0; i < serviceNames.getLength(); ++i)
{
SAL_DEBUG(serviceNames[i]);
}
const OUString* pCurr = serviceNames.getConstArray();
const OUString* const pEnd = pCurr + serviceNames.getLength();
while( pCurr != pEnd )
......@@ -181,11 +186,30 @@ CanvasFactory::CanvasFactory( Reference<XComponentContext> const & xContext ) :
{
Sequence<OUString> implementationList;
if( (xEntryNameAccess->getByName("PreferredImplementations") >>= implementationList) )
{
m_aAvailableImplementations.push_back( std::make_pair(*pCurr,implementationList) );
for (sal_Int32 i = 0; i < implementationList.getLength(); ++i)
{
SAL_DEBUG("available :" << implementationList[i]);
}
}
if( (xEntryNameAccess->getByName("AcceleratedImplementations") >>= implementationList) )
{
for (sal_Int32 i = 0; i < implementationList.getLength(); ++i)
{
SAL_DEBUG("accelerated: " <<implementationList[i]);
}
m_aAcceleratedImplementations.push_back( std::make_pair(*pCurr,implementationList) );
}
if( (xEntryNameAccess->getByName("AntialiasingImplementations") >>= implementationList) )
{
for (sal_Int32 i = 0; i < implementationList.getLength(); ++i)
{
SAL_DEBUG("aa implemented: " << implementationList[i]);
}
m_aAAImplementations.push_back( std::make_pair(*pCurr,implementationList) );
}
}
++pCurr;
......@@ -270,6 +294,7 @@ Reference<XInterface> CanvasFactory::use(
Reference<XComponentContext> const & xContext ) const
{
try {
SAL_DEBUG("use: " << serviceName);
return m_xContext->getServiceManager()->createInstanceWithArgumentsAndContext(
serviceName, args, xContext);
}
......@@ -312,6 +337,7 @@ Reference<XInterface> CanvasFactory::lookupAndUse(
Reference<XComponentContext> const & xContext ) const
{
::osl::MutexGuard guard(m_mutex);
SAL_DEBUG(serviceName);
// forcing last entry from impl list, if config flag set
bool bForceLastEntry(false);
......
......@@ -967,8 +967,9 @@ namespace oglcanvas
break;
}
o_action.maARGBColor =
mpDevice->getDeviceColorSpace()->convertToARGB(renderState.DeviceColor)[0];
if (renderState.DeviceColor.getLength())
o_action.maARGBColor =
mpDevice->getDeviceColorSpace()->convertToARGB(renderState.DeviceColor)[0];
}
void CanvasHelper::flush() const
......
......@@ -389,6 +389,7 @@ namespace oglcanvas
uno::Reference<rendering::XColorSpace> SpriteDeviceHelper::getColorSpace() const
{
SAL_DEBUG("called SpriteDeviceHelper::getColorSpace()");
// always the same
return uno::Reference<rendering::XColorSpace>(
::canvas::tools::getStdColorSpace(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment