Add profiler markers for painting on the paint thread. (bug 1412951, r=mstange)

The following commits added the necessary tracking to ensure we always end
a profiler marker when we start one, and this just plugs them in.

MozReview-Commit-ID: C5VXpnlH2QA

--HG--
extra : rebase_source : 832c8abdef45e0a9bbb71bbf105fe4a76d0eb60d
This commit is contained in:
Ryan Hunt 2017-10-30 14:48:16 -04:00
Родитель 27d35624ce
Коммит 4371a10ca6
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -8,6 +8,7 @@
#include "base/task.h"
#include "gfxPrefs.h"
#include "GeckoProfiler.h"
#include "mozilla/layers/CompositorBridgeChild.h"
#include "mozilla/layers/ShadowLayers.h"
#include "mozilla/layers/SyncObject.h"
@ -201,6 +202,7 @@ PaintThread::AsyncPaintContents(CompositorBridgeChild* aBridge,
if (!mInAsyncPaintGroup) {
mInAsyncPaintGroup = true;
PROFILER_TRACING("Paint", "Rasterize", TRACING_INTERVAL_START);
}
DrawTarget* target = aState->mTargetDual;
@ -297,6 +299,7 @@ PaintThread::AsyncEndLayerTransaction(CompositorBridgeChild* aBridge,
}
mInAsyncPaintGroup = false;
PROFILER_TRACING("Paint", "Rasterize", TRACING_INTERVAL_END);
if (aBridge) {
aBridge->NotifyFinishedAsyncEndLayerTransaction();