mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 23:37:33 +09:00
Issue #21 - Remove panning/tab animation performance measurements
Based on FranklinDM's follow-up for the issue. This would require browser FE changes, particularly removing the associated code in `tabbrowser.xml`, however, that was already done in Pale Moon previously. Other front-end applications may need to take note, though. Based on changes from the following bugs: * Bug 696398 - Need an api to analyze panning performance * Bug 800031 - Include paint time in tab switch telemetry * Bug 820167 - Enable performance measurement of tab animation * Bug 826383 - Improve Start/Stop FrameTimeRecording for telemetry usage
This commit is contained in:
parent
1ae5f60a1b
commit
2e944692c3
14 changed files with 1 additions and 344 deletions
|
|
@ -802,24 +802,6 @@ CompositorBridgeChild::SendFlushRendering()
|
|||
return PCompositorBridgeChild::SendFlushRendering();
|
||||
}
|
||||
|
||||
bool
|
||||
CompositorBridgeChild::SendStartFrameTimeRecording(const int32_t& bufferSize, uint32_t* startIndex)
|
||||
{
|
||||
if (!mCanSend) {
|
||||
return false;
|
||||
}
|
||||
return PCompositorBridgeChild::SendStartFrameTimeRecording(bufferSize, startIndex);
|
||||
}
|
||||
|
||||
bool
|
||||
CompositorBridgeChild::SendStopFrameTimeRecording(const uint32_t& startIndex, nsTArray<float>* intervals)
|
||||
{
|
||||
if (!mCanSend) {
|
||||
return false;
|
||||
}
|
||||
return PCompositorBridgeChild::SendStopFrameTimeRecording(startIndex, intervals);
|
||||
}
|
||||
|
||||
bool
|
||||
CompositorBridgeChild::SendNotifyRegionInvalidated(const nsIntRegion& region)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -159,8 +159,6 @@ public:
|
|||
bool SendMakeSnapshot(const SurfaceDescriptor& inSnapshot, const gfx::IntRect& dirtyRect);
|
||||
bool SendFlushRendering();
|
||||
bool SendGetTileSize(int32_t* tileWidth, int32_t* tileHeight);
|
||||
bool SendStartFrameTimeRecording(const int32_t& bufferSize, uint32_t* startIndex);
|
||||
bool SendStopFrameTimeRecording(const uint32_t& startIndex, nsTArray<float>* intervals);
|
||||
bool SendNotifyRegionInvalidated(const nsIntRegion& region);
|
||||
bool SendRequestNotifyAfterRemotePaint();
|
||||
bool SendClearApproximatelyVisibleRegions(uint64_t aLayersId, uint32_t aPresShellId);
|
||||
|
|
|
|||
|
|
@ -817,27 +817,6 @@ CompositorBridgeParent::Invalidate()
|
|||
}
|
||||
}
|
||||
|
||||
bool
|
||||
CompositorBridgeParent::RecvStartFrameTimeRecording(const int32_t& aBufferSize, uint32_t* aOutStartIndex)
|
||||
{
|
||||
if (mLayerManager) {
|
||||
*aOutStartIndex = mLayerManager->StartFrameTimeRecording(aBufferSize);
|
||||
} else {
|
||||
*aOutStartIndex = 0;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
CompositorBridgeParent::RecvStopFrameTimeRecording(const uint32_t& aStartIndex,
|
||||
InfallibleTArray<float>* intervals)
|
||||
{
|
||||
if (mLayerManager) {
|
||||
mLayerManager->StopFrameTimeRecording(aStartIndex, *intervals);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
CompositorBridgeParent::RecvClearApproximatelyVisibleRegions(const uint64_t& aLayersId,
|
||||
const uint32_t& aPresShellId)
|
||||
|
|
|
|||
|
|
@ -281,8 +281,6 @@ public:
|
|||
}
|
||||
|
||||
virtual bool RecvNotifyRegionInvalidated(const nsIntRegion& aRegion) override;
|
||||
virtual bool RecvStartFrameTimeRecording(const int32_t& aBufferSize, uint32_t* aOutStartIndex) override;
|
||||
virtual bool RecvStopFrameTimeRecording(const uint32_t& aStartIndex, InfallibleTArray<float>* intervals) override;
|
||||
|
||||
// Unused for chrome <-> compositor communication (which this class does).
|
||||
// @see CrossProcessCompositorBridgeParent::RecvRequestNotifyAfterRemotePaint
|
||||
|
|
|
|||
|
|
@ -56,8 +56,6 @@ public:
|
|||
virtual bool RecvFlushRendering() override { return true; }
|
||||
virtual bool RecvForcePresent() override { return true; }
|
||||
virtual bool RecvNotifyRegionInvalidated(const nsIntRegion& aRegion) override { return true; }
|
||||
virtual bool RecvStartFrameTimeRecording(const int32_t& aBufferSize, uint32_t* aOutStartIndex) override { return true; }
|
||||
virtual bool RecvStopFrameTimeRecording(const uint32_t& aStartIndex, InfallibleTArray<float>* intervals) override { return true; }
|
||||
|
||||
virtual bool RecvClearApproximatelyVisibleRegions(const uint64_t& aLayersId,
|
||||
const uint32_t& aPresShellId) override;
|
||||
|
|
|
|||
|
|
@ -184,12 +184,6 @@ parent:
|
|||
// work around a windows presentation bug (See Bug 1232042)
|
||||
async ForcePresent();
|
||||
|
||||
sync StartFrameTimeRecording(int32_t bufferSize)
|
||||
returns (uint32_t startIndex);
|
||||
|
||||
sync StopFrameTimeRecording(uint32_t startIndex)
|
||||
returns (float[] intervals);
|
||||
|
||||
// layersBackendHints is an ordered list of preffered backends where
|
||||
// layersBackendHints[0] is the best backend. If any hints are LayersBackend::LAYERS_NONE
|
||||
// that hint is ignored.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue