Open Bug 1570392 Opened 6 years ago Updated 1 year ago

gfx/layers/CompositionRecorder.cpp and gfx/layers/wr/WebRenderCompositionRecorder.cpp are untested

Categories

(Core :: Graphics, defect, P3)

defect

Tracking

()

People

(Reporter: beth, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

No description provided.

The priority flag is not set for this bug.
:ekyle, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(klahnakoski)
Component: Code Coverage → Graphics: Layers
Flags: needinfo?(klahnakoski)
Product: Testing → Core
Version: Version 3 → unspecified

CompositionRecorder.cpp and WebRenderCompositionRecorder.cpp are worked by :barret recently.

:barret, can you take a bug?

Flags: needinfo?(brennie)
Priority: -- → P3

I can that this but it is low on my priority list for the rest of the quarter.

Assignee: nobody → brennie
Flags: needinfo?(brennie)

Improve the test coverage for gfx/layers/CompositionRecorder.cpp

I'd like to work on this, if that's ok with you. Is https://phabricator.services.mozilla.com/D43475 going in the direction you want?

Flags: needinfo?(brennie)

I think this approach is fine for the plain CompositionRecorder, but it doesn't test the WebRenderCompositionRecorder. However, that requires WebRender to be running which I don't know that we can do in gtests.

:mstange, is this is a sufficient test for non-webrender CompositionRecorder? Can we even test the WebRenderCompositionRecorder from gtests?

:singuliere, ideally I'd also like a mochitest that tests the entire pipeline:

  1. Sets the layers.windowrecording.path pref to a new temp directory
  2. Starts the composition recorder (via windowUtils.setCompositionRecording(true))
  3. Navigates to a new page (e.g. from about:blank to a page with content)
  4. Stops the composition recorder (via windowUtils.setCompositionRecording(false))
  5. Checks that the temp directory contains a windowrecording-* directory with at least one image.

There may need to be a delay between 4 and 5 to wait for the frames to be written to disk.

Assignee: brennie → singuliere
Flags: needinfo?(brennie) → needinfo?(mstange)

The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.

Assignee: singuliere → nobody
Severity: normal → S3

Can we even test the WebRenderCompositionRecorder from gtests?

I don't think we can.

Flags: needinfo?(mstange.moz)
Component: Graphics: Layers → Graphics
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: