Closed Bug 1011569 Opened 10 years ago Closed 10 years ago

Remove PreferMemoryOverShmem

Categories

(Core :: Graphics: Layers, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla33

People

(Reporter: cwiiis, Assigned: cwiiis)

References

Details

Attachments

(1 file)

PreferMemoryOverShmem has been superseded by IsSameProcess, we can remove the former and reduce code complexity a little.
Attachment #8423963 - Flags: review?(nical.bugzilla)
Actually I would like to remove the non-Shmem case altogether. What do you think?
(In reply to Andreas Gal :gal from comment #2)
> Actually I would like to remove the non-Shmem case altogether. What do you
> think?

TL;DR: Broadly in favour.


I'd like to, but last I checked it was an appreciable performance hit on Android at least.

I think we'd need to profile any significant regression and understand where it's coming from before doing that. It may not actually be a regression now we have the tile cache, but if it is we definitely need to investigate why (which may lead to some nice low-hanging fruit :))

That shouldn't stop this landing though (if it passes review).
This should only be a hit if we don't cache content clients properly. Especially with tiling we should have a 100% cache hit rate for that.
There are still other places where we do a poor job of caching textures (pretty much everywhere except tiled layers) I don't think we can get rid of MemoryTextureClient/Host just yet (although I am all for removing it as soon as it doesn't cause a performance hit).
Attachment #8423963 - Flags: review?(nical.bugzilla) → review+
Depends on: 1012639
The assertions were likely caused by shmem being used where previously it wasn't because IsSameProcess is broken (bug 1012639). I'll re-land once that bug is resolved.
https://hg.mozilla.org/mozilla-central/rev/e7537b4f7a6c
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: