Removed weird VERBOSE overload in canvas
Now doing extra logging / graphical debug cues via OSL_DEBUG_LEVEL of 3. Also saves some lines in makefiles.
This commit is contained in:
@@ -40,12 +40,6 @@ $(eval $(call gb_Library_add_api,cairocanvas,\
|
||||
udkapi \
|
||||
))
|
||||
|
||||
ifneq ($(strip $(VERBOSE)$(verbose)),)
|
||||
$(eval $(call gb_Library_add_defs,cairocanvas,\
|
||||
-DVERBOSE \
|
||||
))
|
||||
endif
|
||||
|
||||
ifeq ($(OS),MACOSX)
|
||||
|
||||
$(eval $(call gb_Library_add_cxxflags,cairocanvas,\
|
||||
|
@@ -46,18 +46,6 @@ $(eval $(call gb_Library_add_defs,canvastools,\
|
||||
-DCANVASTOOLS_DLLIMPLEMENTATION \
|
||||
))
|
||||
|
||||
ifneq ($(strip $(VERBOSE)$(verbose)),)
|
||||
$(eval $(call gb_Library_add_defs,canvastools,\
|
||||
-DVERBOSE \
|
||||
))
|
||||
endif
|
||||
|
||||
ifneq ($(strip $(PROFILER)$(profiler)),)
|
||||
$(eval $(call gb_Library_add_defs,canvastools,\
|
||||
-DPROFILER \
|
||||
))
|
||||
endif
|
||||
|
||||
$(eval $(call gb_Library_add_linked_libs,canvastools,\
|
||||
basegfx \
|
||||
comphelper \
|
||||
|
@@ -44,12 +44,6 @@ $(eval $(call gb_Library_add_defs,directx5canvas,\
|
||||
-DDIRECTX_VERSION=0x0500 \
|
||||
))
|
||||
|
||||
ifneq ($(strip $(VERBOSE)$(verbose)),)
|
||||
$(eval $(call gb_Library_add_defs,directx5canvas,\
|
||||
-DVERBOSE \
|
||||
))
|
||||
endif
|
||||
|
||||
$(eval $(call gb_Library_add_linked_libs,directx5canvas,\
|
||||
cppu \
|
||||
tk \
|
||||
|
@@ -39,12 +39,6 @@ $(eval $(call gb_Library_add_defs,directx9canvas,\
|
||||
-DDIRECTX_VERSION=0x0900 \
|
||||
))
|
||||
|
||||
ifneq ($(strip $(VERBOSE)$(verbose)),)
|
||||
$(eval $(call gb_Library_add_defs,directx9canvas,\
|
||||
-DVERBOSE \
|
||||
))
|
||||
endif
|
||||
|
||||
$(eval $(call gb_Library_add_linked_libs,directx9canvas,\
|
||||
cppu \
|
||||
tk \
|
||||
|
@@ -38,12 +38,6 @@ $(eval $(call gb_Library_add_api,nullcanvas,\
|
||||
udkapi \
|
||||
))
|
||||
|
||||
ifneq ($(strip $(VERBOSE)$(verbose)),)
|
||||
$(eval $(call gb_Library_add_defs,nullcanvas,\
|
||||
-DVERBOSE \
|
||||
))
|
||||
endif
|
||||
|
||||
$(eval $(call gb_Library_add_linked_libs,nullcanvas,\
|
||||
basegfx \
|
||||
canvastools \
|
||||
|
@@ -40,12 +40,6 @@ $(eval $(call gb_Library_add_api,simplecanvas,\
|
||||
udkapi \
|
||||
))
|
||||
|
||||
ifneq ($(strip $(VERBOSE)$(verbose)),)
|
||||
$(eval $(call gb_Library_add_defs,simplecanvas,\
|
||||
-DVERBOSE \
|
||||
))
|
||||
endif
|
||||
|
||||
$(eval $(call gb_Library_add_linked_libs,simplecanvas,\
|
||||
basegfx \
|
||||
canvastools \
|
||||
|
@@ -40,12 +40,6 @@ $(eval $(call gb_Library_add_api,vclcanvas,\
|
||||
udkapi \
|
||||
))
|
||||
|
||||
ifneq ($(strip $(VERBOSE)$(verbose)),)
|
||||
$(eval $(call gb_Library_add_defs,vclcanvas,\
|
||||
-DVERBOSE \
|
||||
))
|
||||
endif
|
||||
|
||||
$(eval $(call gb_Library_add_linked_libs,vclcanvas,\
|
||||
basegfx \
|
||||
canvastools \
|
||||
|
@@ -483,7 +483,7 @@ namespace canvas
|
||||
( SourceLimits::is_signed && arg<TargetLimits::min()) || // underflow will happen
|
||||
( arg>TargetLimits::max() ) ) // overflow will happen
|
||||
{
|
||||
#if defined(VERBOSE) && defined(DBG_UTIL)
|
||||
# if OSL_DEBUG_LEVEL > 2
|
||||
OSL_TRACE("numeric_cast detected data loss");
|
||||
#endif
|
||||
throw ::com::sun::star::uno::RuntimeException(
|
||||
|
@@ -39,7 +39,7 @@
|
||||
|
||||
::std::size_t find_unreachable_objects( bool );
|
||||
|
||||
# ifdef VERBOSE
|
||||
# if OSL_DEBUG_LEVEL > 2
|
||||
# include <osl/diagnose.h>
|
||||
# define SHARED_PTR_LEFTOVERS(a) OSL_TRACE("%s\n%s: Unreachable objects still use %d bytes\n", \
|
||||
BOOST_CURRENT_FUNCTION, a, \
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#ifndef INCLUDED_CANVAS_VERBOSETRACE_HXX
|
||||
#define INCLUDED_CANVAS_VERBOSETRACE_HXX
|
||||
|
||||
#if defined(VERBOSE) && defined(DBG_UTIL)
|
||||
#if OSL_DEBUG_LEVEL > 2
|
||||
/// Wrap OSL_TRACE with a verbosity switch
|
||||
#define VERBOSE_TRACE OSL_TRACE
|
||||
#else
|
||||
|
@@ -1735,7 +1735,7 @@ namespace dxcanvas
|
||||
// ignore area and offset for page flipping device
|
||||
if( mbPageFlipping )
|
||||
{
|
||||
#if defined(VERBOSE) && defined(DBG_UTIL)
|
||||
#if OSL_DEBUG_LEVEL > 2
|
||||
renderFPSCounter();
|
||||
renderMemAvailable();
|
||||
#endif
|
||||
@@ -1816,7 +1816,7 @@ namespace dxcanvas
|
||||
*mpBackBufferSurface,
|
||||
pBltFX,false ) )
|
||||
{
|
||||
#if defined(VERBOSE) && defined(DBG_UTIL)
|
||||
#if OSL_DEBUG_LEVEL > 2
|
||||
renderFPSCounter();
|
||||
renderMemAvailable();
|
||||
#endif
|
||||
|
@@ -422,7 +422,7 @@ namespace dxcanvas
|
||||
rGraphics->FillPath( pGradientBrush.get(), pFillPath.get() );
|
||||
}
|
||||
|
||||
#if defined(VERBOSE) && defined(DBG_UTIL)
|
||||
#if OSL_DEBUG_LEVEL > 2
|
||||
Gdiplus::Pen aPen( Gdiplus::Color( 255, 255, 0, 0 ),
|
||||
0.0001f );
|
||||
|
||||
|
@@ -113,7 +113,7 @@ namespace dxcanvas
|
||||
maScrapRect(),
|
||||
mbShowSpriteBounds( false )
|
||||
{
|
||||
#if defined(VERBOSE) && defined(DBG_UTIL)
|
||||
#if OSL_DEBUG_LEVEL > 2
|
||||
// inverse default for verbose debug mode
|
||||
mbShowSpriteBounds = true;
|
||||
#endif
|
||||
|
@@ -156,7 +156,7 @@ namespace canvas
|
||||
const ::basegfx::B2DPolygon& rTriangulatedPolygon(
|
||||
::basegfx::triangulator::triangulate(rClipPoly));
|
||||
|
||||
#if defined(VERBOSE) && OSL_DEBUG_LEVEL > 0
|
||||
#if OSL_DEBUG_LEVEL > 2
|
||||
// dump polygons
|
||||
OSL_TRACE( "Original clip polygon: %s\n"
|
||||
"Triangulated polygon: %s\n",
|
||||
|
@@ -454,7 +454,7 @@ namespace vclcanvas
|
||||
(sal_uInt8)(basegfx::tools::lerp(rColors[nIndex].GetGreen(),rColors[nIndex+1].GetGreen(),fAlpha)),
|
||||
(sal_uInt8)(basegfx::tools::lerp(rColors[nIndex].GetBlue(),rColors[nIndex+1].GetBlue(),fAlpha)) ));
|
||||
|
||||
#if defined(VERBOSE) && OSL_DEBUG_LEVEL > 0
|
||||
#if OSL_DEBUG_LEVEL > 2
|
||||
if( i && !(i % 10) )
|
||||
rOutDev.SetFillColor( COL_RED );
|
||||
#endif
|
||||
@@ -705,7 +705,8 @@ namespace vclcanvas
|
||||
}
|
||||
#endif // complex-clipping vs. XOR-trick
|
||||
|
||||
#if 0 //defined(VERBOSE) && OSL_DEBUG_LEVEL > 0
|
||||
#if OSL_DEBUG_LEVEL > 3
|
||||
// extra-verbosity
|
||||
{
|
||||
::basegfx::B2DRectangle aRect(0.0, 0.0, 1.0, 1.0);
|
||||
::basegfx::B2DRectangle aTextureDeviceRect;
|
||||
|
@@ -194,7 +194,7 @@ namespace vclcanvas
|
||||
mbShowSpriteBounds( false ),
|
||||
mbIsUnsafeScrolling( false )
|
||||
{
|
||||
#if defined(VERBOSE) && OSL_DEBUG_LEVEL > 0
|
||||
#if OSL_DEBUG_LEVEL > 2
|
||||
// inverse defaults for verbose debug mode
|
||||
mbShowSpriteBounds = mbShowFrameInfo = true;
|
||||
#endif
|
||||
@@ -353,7 +353,7 @@ namespace vclcanvas
|
||||
renderMemUsage( rOutDev );
|
||||
}
|
||||
|
||||
#if defined(VERBOSE) && OSL_DEBUG_LEVEL > 0
|
||||
#if OSL_DEBUG_LEVEL > 2
|
||||
static ::canvas::tools::ElapsedTime aElapsedTime;
|
||||
|
||||
// log time immediately after surface flip
|
||||
|
@@ -412,11 +412,8 @@ namespace vclcanvas
|
||||
2,'.',NULL,' ') );
|
||||
|
||||
rTargetSurface.DrawText( aOutPos+Point(2,2), text );
|
||||
|
||||
#if defined(VERBOSE) && OSL_DEBUG_LEVEL > 0
|
||||
OSL_TRACE( "SpriteHelper::redraw(): sprite %X has prio %f\n",
|
||||
VERBOSE_TRACE( "SpriteHelper::redraw(): sprite %X has prio %f\n",
|
||||
this, getPriority() );
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user