Open Bug 753924 Opened 13 years ago Updated 2 years ago

Scaling with drawImage is slow

Categories

(Core :: Graphics: Canvas2D, defect)

12 Branch
x86_64
macOS
defect

Tracking

()

UNCONFIRMED

People

(Reporter: grantgalitz, Unassigned)

Details

Attachments

(2 files)

Attached file canvas_scale.html
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:12.0) Gecko/20100101 Firefox/12.0 Build ID: 20120420145725 Steps to reproduce: Tested scaling with drawImage to scale a white noise blit at 60fps to window. Actual results: 20 fps cap and full cpu usage. Expected results: gpu acceleration should have kicked in to make it fast.
Hardware: x86 → x86_64
Firefox will accelerate the other test http://grantgalitz.org/canvas_tests/css_scale.html as it relies on layout acceleration, while canvas_scale won't be accelerated due to drawImage usage.
Keywords: html5
Component: Untriaged → Canvas: 2D
Product: Firefox → Core
QA Contact: untriaged → canvas.2d
As far as I know we don't do content acceleration on Mac OSX 10.6, but we do on 10.7. Can you try 10.7?
Did you mean context2d acceleration? Because content html layer acceleration is present for me.
Yes. My understanding is that starting in Firefox 12, on Mac, we use Core Graphics, and my (limited and possibly wrong) understanding is that Core Graphics is hw-accelerated on OSX 10.7.
huh, then I'll need to test with lion. Somehow though, google chrome managed to pull in acceleration for context2d here though, as it's not a problem there.
Chrome doesn't use Core Graphics, they use Skia with its own GL-accelerated back-end.
Yeah, I figured that too, though couldn't firefox accelerate with a special gl path too? I'd imagine firefox could do normal gl-acceleration on snow or other OSes for context-2d.
(In reply to Grant Galitz from comment #8) > Yeah, I figured that too, though couldn't firefox accelerate with a special > gl path too? See bug 751418 for enabling Skia+GL.
Joe tells me that we're not actually getting hw accel from Core Graphics at the moment, and that our best path toward content acceleration on Mac is bug 751418.
Unable to repro as I use OS X 10.8 now.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: