Open
Bug 753924
Opened 13 years ago
Updated 2 years ago
Scaling with drawImage is slow
Categories
(Core :: Graphics: Canvas2D, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: grantgalitz, Unassigned)
Details
Attachments
(2 files)
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.
| Reporter | ||
Updated•13 years ago
|
Hardware: x86 → x86_64
| Reporter | ||
Comment 1•13 years ago
|
||
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.
| Reporter | ||
Comment 2•13 years ago
|
||
Updated•13 years ago
|
Component: Untriaged → Canvas: 2D
Product: Firefox → Core
QA Contact: untriaged → canvas.2d
Comment 3•13 years ago
|
||
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?
| Reporter | ||
Comment 4•13 years ago
|
||
Did you mean context2d acceleration? Because content html layer acceleration is present for me.
Comment 5•13 years ago
|
||
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.
| Reporter | ||
Comment 6•13 years ago
|
||
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.
Comment 7•13 years ago
|
||
Chrome doesn't use Core Graphics, they use Skia with its own GL-accelerated back-end.
| Reporter | ||
Comment 8•13 years ago
|
||
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.
Comment 9•13 years ago
|
||
(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.
Comment 10•13 years ago
|
||
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.
| Reporter | ||
Comment 11•12 years ago
|
||
Unable to repro as I use OS X 10.8 now.
| Reporter | ||
Updated•12 years ago
|
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•