Closed Bug 583033 Opened 14 years ago Closed 14 years ago

D2D fill currently always falls back with clear

Categories

(Core :: Graphics, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- betaN+

People

(Reporter: bas.schouten, Assigned: bas.schouten)

References

Details

Attachments

(1 file)

We return unsupported for all operators but ADD and OVER. Because the clear operator has been implemented after the operator check since the clipping patch. We should continue for operator clear and let it try.
Attachment #461289 - Flags: review?(jmuizelaar)
Comment on attachment 461289 [details] [diff] [review]
Do not abort for operator clear

>diff --git a/gfx/cairo/cairo/src/cairo-d2d-surface.cpp b/gfx/cairo/cairo/src/cairo-d2d-surface.cpp
>--- a/gfx/cairo/cairo/src/cairo-d2d-surface.cpp
>+++ b/gfx/cairo/cairo/src/cairo-d2d-surface.cpp
>@@ -2374,17 +2374,18 @@ _cairo_d2d_fill(void			*surface,
> 		cairo_clip_t		*clip)
> {
>     cairo_int_status_t status;
> 
>     cairo_d2d_surface_t *d2dsurf = static_cast<cairo_d2d_surface_t*>(surface);
> 
>     op = _cairo_d2d_simplify_operator(op, source);
> 
>-    if (op != CAIRO_OPERATOR_OVER && op != CAIRO_OPERATOR_ADD) {
>+    if (op != CAIRO_OPERATOR_OVER && op != CAIRO_OPERATOR_ADD &&
>+	op != CAIRO_OPERATOR_CLEAR) {

We should eventually try to get rid of this condition by handling the cases we support and bailing otherwise.
Attachment #461289 - Flags: review?(jmuizelaar) → review+
blocking2.0: --- → ?
blocking2.0: ? → betaN+
Pushed http://hg.mozilla.org/mozilla-central/rev/8b83111e2a7f.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Blocks: 577069
(In reply to comment #3)
> why I can't see it on http://hg.mozilla.org/mozilla-central/shortlog ?

Bug 582998 perhaps?
(In reply to comment #4)
> (In reply to comment #3)
> > why I can't see it on http://hg.mozilla.org/mozilla-central/shortlog ?
> 
> Bug 582998 perhaps?

you mean there's bug in http://hg.mozilla.org/mozilla-central/ ???
It burped. Not the repository though, the pushlog.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: