diff --git a/gfx/layers/ipc/ShadowLayersParent.cpp b/gfx/layers/ipc/ShadowLayersParent.cpp index a014afafa101..7e4f29a9b721 100644 --- a/gfx/layers/ipc/ShadowLayersParent.cpp +++ b/gfx/layers/ipc/ShadowLayersParent.cpp @@ -401,8 +401,10 @@ ShadowLayersParent::RecvUpdate(const InfallibleTArray& cset, mShadowLayersManager->ShadowLayersUpdated(isFirstPaint); #ifdef COMPOSITOR_PERFORMANCE_WARNING - printf_stderr("Compositor: Layers update took %i ms (blocking gecko).\n", - (int)(mozilla::TimeStamp::Now() - updateStart).ToMilliseconds()); + int compositeTime = (int)(mozilla::TimeStamp::Now() - updateStart).ToMilliseconds(); + if (compositeTime > 15) { + printf_stderr("Compositor: Layers update took %i ms (blocking gecko).\n", compositeTime); + } #endif return true;