зеркало из https://github.com/mozilla/gecko-dev.git
Bug 965022 - Avoid passing a TimeStamp to printf in PrintUniformityInfo. r=mchang
--HG-- extra : rebase_source : 73cbb638427eae5987c3b19169ceed1fa47ec190
This commit is contained in:
Родитель
717d780f6d
Коммит
19f0eab038
|
@ -115,6 +115,8 @@ static void DrawLayerInfo(const RenderTargetIntRect& aClipRect,
|
|||
|
||||
static void PrintUniformityInfo(Layer* aLayer)
|
||||
{
|
||||
static TimeStamp t0 = TimeStamp::Now();
|
||||
|
||||
// Don't want to print a log for smaller layers
|
||||
if (aLayer->GetEffectiveVisibleRegion().GetBounds().width < 300 ||
|
||||
aLayer->GetEffectiveVisibleRegion().GetBounds().height < 300) {
|
||||
|
@ -127,7 +129,8 @@ static void PrintUniformityInfo(Layer* aLayer)
|
|||
}
|
||||
Point translation = transform.As2D().GetTranslation();
|
||||
printf_stderr("UniformityInfo Layer_Move %llu %p %f, %f\n",
|
||||
TimeStamp::Now(), aLayer, translation.x.value, translation.y.value);
|
||||
(unsigned long long)(TimeStamp::Now() - t0).ToMilliseconds(), aLayer,
|
||||
translation.x.value, translation.y.value);
|
||||
}
|
||||
|
||||
/* all of the per-layer prepared data we need to maintain */
|
||||
|
|
Загрузка…
Ссылка в новой задаче