Bug 1055760 - Update frame uniformity code to use the shadow transform. r=BenWa,mchang

This commit is contained in:
Kartikaya Gupta 2014-08-27 22:13:43 -04:00
Родитель f72e3c0ee4
Коммит fe7f22ce27
1 изменённых файлов: 5 добавлений и 13 удалений

Просмотреть файл

@ -121,21 +121,13 @@ static void PrintUniformityInfo(Layer* aLayer)
return;
}
FrameMetrics frameMetrics = aLayer->GetFrameMetrics();
if (!frameMetrics.IsScrollable()) {
Matrix4x4 transform = aLayer->AsLayerComposite()->GetShadowTransform();
if (!transform.Is2D()) {
return;
}
AsyncPanZoomController* apzc = aLayer->GetAsyncPanZoomController();
if (apzc) {
ViewTransform asyncTransform, overscrollTransform;
ScreenPoint scrollOffset;
apzc->SampleContentTransformForFrame(&asyncTransform,
scrollOffset,
&overscrollTransform);
printf_stderr("UniformityInfo Layer_Move %llu %p %f, %f\n",
TimeStamp::Now(), aLayer, scrollOffset.x.value, scrollOffset.y.value);
}
Point translation = transform.As2D().GetTranslation();
printf_stderr("UniformityInfo Layer_Move %llu %p %f, %f\n",
TimeStamp::Now(), aLayer, translation.x.value, translation.y.value);
}
/* all of the per-layer prepared data we need to maintain */