Remove spew introduced due to XDamage implementation
authorRahul Singhal <rasinghal@nvidia.com>
Thu, 30 Jun 2011 09:21:59 +0000 (14:51 +0530)
committerMichael Schuldt <michael.schuldt@bmw-carit.de>
Thu, 30 Jun 2011 10:54:13 +0000 (12:54 +0200)
Due to the XDamage implementation, every damage event produces a debug spew.
Frequent damage events make the debug log illegible, hence removing this spew.

LayerManagerPlugins/Renderers/Graphic/src/WindowSystems/X11WindowSystem.cpp

index 52d643f..025d0f6 100644 (file)
@@ -165,7 +165,6 @@ bool X11WindowSystem::isWindowValid(Window w)
 
 Surface* X11WindowSystem::getSurfaceForWindow(Window w)
 {
-    LOG_DEBUG("X11WindowSystem", "finding surface for window " << w);
     // go though all surfaces
     const std::map<unsigned int,Surface*> surfaces = m_pScene->getAllSurfaces();
     for(std::map<unsigned int, Surface*>::const_iterator currentS = surfaces.begin(); currentS != surfaces.end(); ++currentS)
@@ -175,11 +174,8 @@ Surface* X11WindowSystem::getSurfaceForWindow(Window w)
         {
             continue;
         }
-        LOG_DEBUG("X11WindowSystem", "CurrentSurface surface for window " << currentSurface->getID());
-        LOG_DEBUG("X11WindowSystem", "CurrentSurface nativeHandle " << currentSurface->nativeHandle);
         if (currentSurface->nativeHandle == static_cast<int>(w))
         {
-                LOG_DEBUG("X11WindowSystem", "surface " << currentSurface->getID() << " corresponds to window" << w);
                 return currentSurface;
         }
     }
@@ -780,7 +776,6 @@ void* X11WindowSystem::EventLoop(void * ptr)
                        default:
                                if (event.type == windowsys->damage_event + XDamageNotify)
                                {
-                                       LOG_DEBUG("X11WindowSystem", "Damage Event");
                                        XDamageSubtract(windowsys->x11Display, ((XDamageNotifyEvent*)(&event))->damage, None, None);
                                        Surface* currentSurface = windowsys->getSurfaceForWindow(((XDamageNotifyEvent*)(&event))->drawable);
                                        if (currentSurface==NULL)