Closed Bug 748649 Opened 13 years ago Closed 13 years ago

Add PLayers async NoSwapUpdate

Categories

(Core :: Graphics, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15
Tracking Status
blocking-fennec1.0 --- -

People

(Reporter: BenWa, Assigned: BenWa)

References

Details

Attachments

(2 files, 2 obsolete files)

With the introduction of TiledThebesLayer we no longer have to swap for that layer type. This patch introduce an async NoSwapUpdate when we can guarantee that no EditReply will be generated for the transaction. I haven't test this on mobile but I will early tomorrow. It work well on Mac. FYI we block content on average 5-15ms per layers update and most update on sites without a changing canvas will benefit from this change. This may also be an option to move towards async layers update one layer type/back end a time without a sweeping refactor.
Attached patch patch (obsolete) (deleted) — Splinter Review
Assignee: nobody → bgirard
Status: NEW → ASSIGNED
Attachment #618162 - Flags: review?(jones.chris.g)
The risk is moderate and the performance win is significant over many paints (esp. smaller paints).
blocking-fennec1.0: --- → ?
This should make you happy Chris, to support this properly we need to fix bug 747811 otherwise a get a race. Patch is already underway. Let's get this reviewed in the meantime since it wont effect this patch in the slightest.
Depends on: 747811
blocking-fennec1.0: ? → -
Blocks: 749062
We don't require this at the moment, but we may come back to it if we still aren't good enough and it shakes out on m-c first.
If you don't have time to look at the patch review Chris do you think Ali could review it? He knows the shadow layers code very well.
I'll be able to look tomorrow. Something came up today.
ping
Comment on attachment 618162 [details] [diff] [review] patch >diff --git a/gfx/layers/ipc/PLayers.ipdl b/gfx/layers/ipc/PLayers.ipdl >+ // We don't need to send a sync transaction if >+ // no transaction operate require a swap. >+ async NoSwapUpdate(Edit[] cset, bool isFirstPaint); Nit: |UpdateNoSwap()|. Yuck ... I thought the isFirstPaint turd went away :/. r=me with naming change. Looks good!
Attachment #618162 - Flags: review?(jones.chris.g) → review+
Attached patch patch (deleted) — Splinter Review
Attachment #618162 - Attachment is obsolete: true
Attachment #620015 - Flags: review+
Attached patch bug 747811 work-around (obsolete) (deleted) — Splinter Review
Attachment #620028 - Flags: review?(ajuma)
Comment on attachment 620028 [details] [diff] [review] bug 747811 work-around Review of attachment 620028 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/layers/opengl/TiledThebesLayerOGL.cpp @@ +131,5 @@ > void > TiledThebesLayerOGL::PaintedTiledLayerBuffer(const BasicTiledLayerBuffer* mTiledBuffer) > { > mMainMemoryTiledBuffer = *mTiledBuffer; > + delete mTiledBuffer; Assuming this is also temporary, add a comment here too.
Attachment #620028 - Flags: review?(ajuma) → review+
Attached patch bug 747811 work-around (deleted) — Splinter Review
Attachment #620028 - Attachment is obsolete: true
Attachment #620034 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
It looks like this caused a 53% improvement in the DHTML NoChrome benchmark on Android Native. Should we consider taking this on Aurora?
It seems to be it: http://graphs.mozilla.org/graph.html#tests=[[19,63,20]]&sel=none&displayrange=7&datatype=running I'm guessing this benchmark does a lot of small-ish painting? I'd be willing to uplift this if it bakes well on trunk.
Depends on: 754056
Blocks: 829747
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: