diff --git a/gfx/layers/client/ClientLayerManager.cpp b/gfx/layers/client/ClientLayerManager.cpp index 42bc1f0a68d3..9741f472179c 100644 --- a/gfx/layers/client/ClientLayerManager.cpp +++ b/gfx/layers/client/ClientLayerManager.cpp @@ -28,7 +28,6 @@ #include "nsXULAppAPI.h" // for XRE_GetProcessType, etc #include "TiledLayerBuffer.h" #include "mozilla/dom/WindowBinding.h" // for Overfill Callback -#include "gfxPrefs.h" #ifdef MOZ_WIDGET_ANDROID #include "AndroidBridge.h" #endif @@ -166,7 +165,7 @@ ClientLayerManager::BeginTransactionWithTarget(gfxContext* aTarget) } // If this is a new paint, increment the paint sequence number. - if (gfxPrefs::APZTestLoggingEnabled() && !mIsRepeatTransaction) { + if (!mIsRepeatTransaction) { ++mPaintSequenceNumber; mApzTestData.StartNewPaint(mPaintSequenceNumber); } @@ -325,14 +324,6 @@ ClientLayerManager::GetCompositorSideAPZTestData(APZTestData* aData) const } } -void -ClientLayerManager::StartNewRepaintRequest(SequenceNumber aSequenceNumber) -{ - if (gfxPrefs::APZTestLoggingEnabled()) { - mApzTestData.StartNewRepaintRequest(aSequenceNumber); - } -} - bool ClientLayerManager::RequestOverfill(mozilla::dom::OverfillCallback* aCallback) { diff --git a/gfx/layers/client/ClientLayerManager.h b/gfx/layers/client/ClientLayerManager.h index 4f031d67e8b4..f6954e5eb4ec 100644 --- a/gfx/layers/client/ClientLayerManager.h +++ b/gfx/layers/client/ClientLayerManager.h @@ -203,8 +203,10 @@ public: // Log APZ test data for a repaint request. The sequence number must be // passed in from outside, and APZTestData::StartNewRepaintRequest() needs // to be called from the outside as well when a new repaint request is started. - void StartNewRepaintRequest(SequenceNumber aSequenceNumber); - + void StartNewRepaintRequest(SequenceNumber aSequenceNumber) + { + mApzTestData.StartNewRepaintRequest(aSequenceNumber); + } // TODO(botond): When we start using this and write a wrapper similar to // nsLayoutUtils::LogTestDataForPaint(), make sure that wrapper checks // gfxPrefs::APZTestLoggingEnabled().