зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1529738 - Add profiler markers for video frames dropped due to slow video decode. r=jya,mstange
Differential Revision: https://phabricator.services.mozilla.com/D20760 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
c01089654e
Коммит
883206cfcc
|
@ -7,6 +7,7 @@
|
|||
#include "MediaFormatReader.h"
|
||||
|
||||
#include "AllocationPolicy.h"
|
||||
#include "GeckoProfiler.h"
|
||||
#include "MediaData.h"
|
||||
#include "MediaInfo.h"
|
||||
#include "VideoFrameContainer.h"
|
||||
|
@ -2631,6 +2632,7 @@ void MediaFormatReader::SkipVideoDemuxToNextKeyFrame(TimeUnit aTimeThreshold) {
|
|||
}
|
||||
|
||||
void MediaFormatReader::VideoSkipReset(uint32_t aSkipped) {
|
||||
PROFILER_ADD_MARKER("SkippedVideoDecode", GRAPHICS);
|
||||
MOZ_ASSERT(OnTaskQueue());
|
||||
|
||||
// Some frames may have been output by the decoder since we initiated the
|
||||
|
|
|
@ -10,8 +10,10 @@
|
|||
# include "mmsystem.h"
|
||||
#endif
|
||||
|
||||
#include "MediaQueue.h"
|
||||
#include "VideoSink.h"
|
||||
|
||||
#include "GeckoProfiler.h"
|
||||
#include "MediaQueue.h"
|
||||
#include "VideoUtils.h"
|
||||
|
||||
#include "mozilla/IntegerPrintfMacros.h"
|
||||
|
@ -451,6 +453,10 @@ void VideoSink::UpdateRenderedVideoFrames() {
|
|||
}
|
||||
}
|
||||
|
||||
if (droppedCount > 0) {
|
||||
PROFILER_ADD_MARKER("DroppedUncompositedVideoFrames", GRAPHICS);
|
||||
}
|
||||
|
||||
if (droppedCount || sentToCompositorCount) {
|
||||
uint32_t totalCompositorDroppedCount = mContainer->GetDroppedImageCount();
|
||||
uint32_t compositorDroppedCount =
|
||||
|
|
Загрузка…
Ссылка в новой задаче