Closed Bug 897635 Opened 11 years ago Closed 11 years ago

Demote GL-accelerated Skia canvas to software if we use non-standard compositing modes

Categories

(Core :: Graphics, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: gw280, Assigned: gw280)

References

Details

Attachments

(1 file)

Canvas specifies 11 standard compositing modes, and there are a bunch more experimental ones. The core set is supported by SkiaGL, but the advanced ops will require us to pull in a newer version of Skia. In the interim, let's fallback to software when we use these non-standard modes so that we don't break them.
(In reply to George Wright (:gw280) from comment #0) > Canvas specifies 11 standard compositing modes, and there are a bunch more > experimental ones. The core set is supported by SkiaGL, but the advanced ops > will require us to pull in a newer version of Skia. In the interim, let's > fallback to software when we use these non-standard modes so that we don't > break them. I don't believe the experimental ones are supported in any of the other backends right now, so this shouldn't be much of a problem.
(In reply to Jeff Muizelaar [:jrmuizel] from comment #1) > (In reply to George Wright (:gw280) from comment #0) > > Canvas specifies 11 standard compositing modes, and there are a bunch more > > experimental ones. The core set is supported by SkiaGL, but the advanced ops > > will require us to pull in a newer version of Skia. In the interim, let's > > fallback to software when we use these non-standard modes so that we don't > > break them. > > I don't believe the experimental ones are supported in any of the other > backends right now, so this shouldn't be much of a problem. I misinterpreted the set of blend modes with a different set. Ignore my previous comment.
George has a patch for this already, would be good to get some review
Attachment #783119 - Flags: review?(matt.woodrow)
Comment on attachment 783119 [details] [diff] [review] demote-non-standard.diff Review of attachment 783119 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/canvas/src/CanvasRenderingContext2D.cpp @@ +3193,5 @@ > // XXX ERRMSG we need to report an error to developers here! (bug 329026) > else return; > > +#ifdef USE_SKIA_GPU > + if (!IsStandardCompositeOp(comp_op)) { Comment somewhere that this is temporary until we get a newer version of skia (at least for desktop).
Attachment #783119 - Flags: review?(matt.woodrow) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: