Closed Bug 606279 Opened 14 years ago Closed 14 years ago

Remove the shmem-backed canvas and the shmem DocumentRenderers (but keep the serializing DocumentRenderer for now)

Categories

(Core :: Graphics: Canvas2D, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fennec 2.0b2+ ---

People

(Reporter: cjones, Assigned: cjones)

References

Details

Attachments

(4 files)

First step in the death march of shmem canvas.  This step doesn't depend on shadow-layer drawWindow or fast -moz-element.

The last consumer of shmem canvas is the fennec frontend, to create tab thumbnails.  These are sized to 104x65, which should result in a 13K 5-6-5 surface.  The frontend only takes these snapshots once per page load, after onload.  So we can serialize these bytes over the IPC pipe with no problems.

I'm hot to do this because non-shared canvas obsoletes bug 604282 and a related bug that's not yet filed.  Would like to eradicate those forevermore.
Good patch, or greatest patch?
Assignee: nobody → jones.chris.g
Attachment #485363 - Flags: superreview?(vladimir)
Attachment #485363 - Flags: review?(joe)
I noticed that we're painting ARGB32 thumbnails, so we're actually sending 26KB instead of 13KB, but I'm not sure why we need alpha so I didn't poke.  (Also this seems fast enough on device.)  Please advise if it's worth looking into RGB16.
Comment on attachment 485363 [details] [diff] [review]
part 1: Excise shmem-backed canvas

I presume that DocumentRenderer is still used for tab previews?
Attachment #485363 - Flags: review?(joe) → review+
Attachment #485364 - Flags: review?(joe) → review+
Attachment #485365 - Flags: review?(joe) → review+
Attachment #485366 - Flags: review?(joe) → review+
I'd suggest blocking-b3 for this.  It fixes bug 604282 and bug 604282 comment 4, which isn't filed.
tracking-fennec: --- → ?
Comment on attachment 485363 [details] [diff] [review]
part 1: Excise shmem-backed canvas

\o/
Attachment #485363 - Flags: superreview?(vladimir) → superreview+
tracking-fennec: ? → 2.0b3+
Is this ready for beta 2?
tracking-fennec: 2.0b3+ → 2.0b2+
Yes.  I've been dogfooding it since last Thursday and haven't noticed a perf impact (and it can't regress talos, sadly).  Just need to check that it compiles on mac/windows.
All clear for when the tree reopens.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: