Bug 28692 - poor performance in canvas demo
Summary: poor performance in canvas demo
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL: http://tulrich.com/geekstuff/canvas/p...
Keywords:
Depends on: 28693
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-24 16:29 PDT by Eric Seidel (no email)
Modified: 2010-05-12 14:29 PDT (History)
6 users (show)

See Also:


Attachments
shark sample of page rendering (deleted)
2009-08-24 16:29 PDT, Eric Seidel (no email)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2009-08-24 16:29:14 PDT
Created attachment 38506 [details]
shark sample of page rendering

poor performance in canvas demo

http://tulrich.com/geekstuff/canvas/perspective.html

I profiled it in Shark and we're spending all our time in:
    CGContextDrawImage(context, adjustedDestRect, image);
under BitmapImage::draw in ImageCG.cpp

The demo looks fine in Chromium Windows/Linux (which uses Skia) and poor in Chromium Mac and Safari.  I'm not sure if this is a CG bug, a WebKit bug in how we're calling CG, a bug in Skia which makes their rendering "incorrectly" fast, or what.

CCing hyatt and Oliver due to their historical interest in this type of bug.  Feel free to remove yourselves if you're not in fact interested here.
Comment 1 Dirk Schulze 2009-08-26 01:22:05 PDT
It's smooth with the standard properties on cairo too, but gets realy slow with maximum details (like in Chromium). So no skia bug i guess.