Bug 1500821 - Call RecordFrame() only for non-empty frame at NotifyDidRender() r=mattwoodrow

This commit is contained in:
sotaro 2018-10-23 13:21:02 +09:00
Родитель 0c726a9a6d
Коммит 221c9b431b
1 изменённых файлов: 8 добавлений и 3 удалений

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

@ -335,9 +335,13 @@ static void
NotifyDidRender(layers::CompositorBridgeParent* aBridge,
wr::WrPipelineInfo aInfo,
TimeStamp aStart,
TimeStamp aEnd)
TimeStamp aEnd,
bool aRender)
{
if (aBridge->GetWrBridge()) {
if (aRender && aBridge->GetWrBridge()) {
// We call this here to mimic the behavior in LayerManagerComposite, as to
// not change what Talos measures. That is, we do not record an empty frame
// as a frame.
aBridge->GetWrBridge()->RecordFrame();
}
@ -397,7 +401,8 @@ RenderThread::UpdateAndRender(wr::WindowId aWindowId,
&NotifyDidRender,
renderer->GetCompositorBridge(),
info,
aStartTime, end
aStartTime, end,
aRender
));
}