Closed Bug 831525 Opened 11 years ago Closed 11 years ago

Enable Skia canvas rendering on windows xp

Categories

(Core :: Graphics, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: mattwoodrow, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(1 file)

We should just do this, it was definitely faster than GDI when I tested it last.

Unfortunately I can't find my benchmark results from last time, but I can probably repeat them if people need convincing. Please suggest specific canvas demos/benchmarks you'd like me to try if so.
Depends on: 831529
On unaccelerated windows xp, we already pass all canvas tests, so this is hopefully just a decision that needs to be made.
OS: Mac OS X → Windows XP
What's involved in turning this on for XP? build-config? runtime pref?
Just a run time pref.

The harder part is agreeing that it's what we want to do, and fixing the last remaining test failure.
Skia is definitely faster for any canvas users that stroke lots of paths, but the part I don't know is whether it's faster (or at least the same speed) for bitmap blitting and scaling. I'd like to see a couple of benchmarks on things like GUIMark and e.g. FishIE to see whether we're going to be taking a hit on blitting operations. If not, we should be good to go for unaccelerated Windows (and Linux probably too).
(In reply to Joe Drew (:JOEDREW! \o/) from comment #4)
> Skia is definitely faster for any canvas users that stroke lots of paths,
> but the part I don't know is whether it's faster (or at least the same
> speed) for bitmap blitting and scaling. 

Can someone post the pref string? We can ask the Shumway team to compare bitmap & vector drawing perf.
Set gfx.canvas.azure.backends to the literal string "skia" (no quotes).
FWIW, was playing with http://ie.microsoft.com/testdrive/Performance/SpeedReading/default.html, the speed for Windows 7 GDI: 15 fps, skia: 25 fps, new directx 60 fps
Is there any reason to believe that our GDI vs. Skia numbers on XP will differ from what Yury found on Win7? Can we turn it on in Nightly and get more people to try it out?
I'm not sure if this is the correct order of backends to enable. Please check!
Attachment #704690 - Flags: review?(matt.woodrow)
Comment on attachment 704690 [details] [diff] [review]
Adds skia to the Windows XP canvas backend types

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

Looks good to me.

Note that we will fail 2 tests on tinderbox if we land this, we need to get bug 831529 fixed first. Or possibly mark the tests as known failures until it's fixed.
Attachment #704690 - Flags: review?(matt.woodrow) → review+
Benchmarking results:

Skia

FishBowl - 38 fps
Asteroids - 2391, 50fps
WebVisBench - 4480, 16.59fps
Smashcat - 77fps

Cairo

FishBowl - 24fps
Asteroids - 2271, 48fps
WebVisBench - 3140, 5.03fps
Smashcat - 65fps
Depends on: 836892
Upstream cairo is noticeably faster than the in-tree one. I'll try to do some measurements to compare where it's at.
Jeff: Does that mean you're offering to do a cairo update if it is faster?

I'd still like to enable skia in the meantime unless it's going to happen quickly. Skia keeps rotting without being tested, and it's an easy win.
(In reply to Matt Woodrow (:mattwoodrow) from comment #13)
> Jeff: Does that mean you're offering to do a cairo update if it is faster?

Maybe.

> I'd still like to enable skia in the meantime unless it's going to happen
> quickly. Skia keeps rotting without being tested, and it's an easy win.

I agree. There's no reason to wait for the cairo results.
https://hg.mozilla.org/mozilla-central/rev/a934441a70c2
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Depends on: 842521
This bug was filed re Windows XP, but the pref change here will affect all Windows systems. Is that understood/intended/ok? See also bug 856394.
Depends on: 981391
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: