summaryrefslogtreecommitdiff
path: root/basebmp
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-04-11 19:09:12 +0300
committerTor Lillqvist <tml@iki.fi>2013-04-11 19:14:45 +0300
commit2729a77b49a9f5d2d827df67674c93847d5261ef (patch)
tree5886c9b9f9ebfe0fa09148fe1d706012bcbaae6b /basebmp
parent48d3902b96581831b06565841d1dd54099428271 (diff)
Add debugging printout of subsetting information
Change-Id: I6c37885823f14dcfbe750691dad27e094f46e66e
Diffstat (limited to 'basebmp')
-rw-r--r--basebmp/source/bitmapdevice.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/basebmp/source/bitmapdevice.cxx b/basebmp/source/bitmapdevice.cxx
index a6774d106552..d49a18d2e2af 100644
--- a/basebmp/source/bitmapdevice.cxx
+++ b/basebmp/source/bitmapdevice.cxx
@@ -2034,13 +2034,20 @@ BitmapDeviceSharedPtr createBitmapDeviceImpl( const basegfx::B2IVector&
{
BitmapDeviceSharedPtr result( createBitmapDeviceImplInner( rSize, bTopDown, nScanlineFormat, pMem, pPal, pSubset, rDamage ) );
+#ifdef SAL_LOG_INFO
+ std::ostringstream subset;
+
+ if (pSubset)
+ subset << " subset: " << pSubset->getWidth() << "x" << pSubset->getHeight() << "@(" << pSubset->getMinX() << "," << pSubset->getMinY() << ")";
+
SAL_INFO( "basebmp.bitmapdevice",
"createBitmapDevice: "
<< rSize.getX() << "x" << rSize.getY()
<< (bTopDown ? " top-down " : " bottom-up ")
<< Format::formatName(nScanlineFormat)
+ << subset.str()
<< " = " << result.get() );
-
+#endif
return result;
}
} // namespace
@@ -2091,6 +2098,7 @@ BitmapDeviceSharedPtr createBitmapDevice( const basegfx::B2IVector& rSize
BitmapDeviceSharedPtr subsetBitmapDevice( const BitmapDeviceSharedPtr& rProto,
const basegfx::B2IBox& rSubset )
{
+ SAL_INFO( "basebmp.bitmapdevice", "subsetBitmapDevice: proto=" << rProto.get() );
return createBitmapDeviceImpl( rProto->getSize(),
rProto->isTopDown(),
rProto->getScanlineFormat(),