Closed Bug 994088 Opened 10 years ago Closed 10 years ago

BasicCompositor repaints everything on every frame

Categories

(Core :: Graphics: Layers, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla32

People

(Reporter: cwiiis, Assigned: cwiiis)

References

Details

Attachments

(1 file, 1 obsolete file)

BasicCompositor currently redraws everything on every frame to work around an unfiled bug (see bug #993639 comment #2). Seeing as this is apparently an e10s issue, let's at least special-case this to e10s.
Attached patch Only redraw everything with e10s (obsolete) — Splinter Review
Note, I see errors with masks when doing partial updates - I don't know if this is an error in BasicCompositor or Moz2D yet. (or some third option)
Attachment #8404000 - Flags: review?(matt.woodrow)
Comment on attachment 8404000 [details] [diff] [review]
Only redraw everything with e10s

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

::: gfx/layers/basic/BasicCompositor.cpp
@@ +413,5 @@
>    invalidRegionSafe.And(aInvalidRegion, intRect);
>  
> +  // FIXME: Redraw the whole screen in every frame to work around e10s
> +  //        repainting issues. See Bug 933639, comment #2.
> +  if (XRE_GetProcessType() != GeckoProcessType_Default) {

I don't think this works, the compositor always runs in the parent process.
(In reply to Chris Lord [:cwiiis] from comment #1)
> Created attachment 8404000 [details] [diff] [review]
> Only redraw everything with e10s
> 
> Note, I see errors with masks when doing partial updates - I don't know if
> this is an error in BasicCompositor or Moz2D yet. (or some third option)

My guess would be LayerTreeInvalidation.cpp computing the wrong area for changes.
Depends on: 994546
I think you committed a patch that fixed the issue of tabs not redrawing? If not, how's that going? Would it be a good idea to just let that error go in the hope that more testing will result in better STR and an easier path to fix the bug?
Attachment #8404000 - Attachment is obsolete: true
Attachment #8404000 - Flags: review?(matt.woodrow)
Attachment #8416450 - Flags: review?(matt.woodrow)
I didn't land, no. Apparently it didn't work.
I've followed up again in bug 994546. Let's figure out what the situation is exactly before landing this.
Attachment #8416450 - Flags: review?(matt.woodrow) → review+
https://hg.mozilla.org/mozilla-central/rev/c666f8f24d29
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: