Closed Bug 1362245 Opened 7 years ago Closed 7 years ago

Stop running commands during recording for BlobImage

Categories

(Core :: Graphics: WebRender, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: jrmuizel, Assigned: jrmuizel)

References

Details

(Whiteboard: [gfx-noted])

Attachments

(1 file, 1 obsolete file)

Currently, DrawTargetRecording runs all of the commands that it's recording while recording. We need to not do this.
Depends on: 1362115
One impediment to fixing this now is that SourceSurfacesRecording wrap a real SourceSurface. If you call GetDataSurface() on it, it calls the real SourceSurface's GetDataSurface(). The plan is to make GetDataSurface() return nullptr on SourceSurfaceRecording and then not call GetDataSurface() while painting.
Depends on: 1362246
Whiteboard: [gfx-noted]
Attached patch Remove the playback (obsolete) — Splinter Review
Assignee: nobody → jmuizelaar
Attached patch patchSplinter Review
I have this split up in a bunch of pieces if you'd prefer to review it that way, but it shouldn't be too bad to review all at once.
Attachment #8875008 - Attachment is obsolete: true
Attachment #8876740 - Flags: review?(lsalzman)
Comment on attachment 8876740 [details] [diff] [review]
patch

Review of attachment 8876740 [details] [diff] [review]:
-----------------------------------------------------------------

This keeps around mFinalDT but mostly doesn't use it (except for when creating a PathBuilder). All playback is ripped out and we'll no longer hold references to things to mFinalDT::GraidentStops or SourceSurfaces etc.
Attachment #8876740 - Flags: review?(lsalzman) → review+
Pushed by jmuizelaar@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/fc0a10e36093
Stop running commands during recording for BlobImage. r=lsalzman
https://hg.mozilla.org/mozilla-central/rev/fc0a10e36093
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Depends on: 1440559
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: