зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1500821 - Call RecordFrame() only for non-empty frame at NotifyDidRender() r=mattwoodrow
This commit is contained in:
Родитель
0c726a9a6d
Коммит
221c9b431b
|
@ -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
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче