Closed Bug 626284 Opened 13 years ago Closed 13 years ago

Set moz-opaque on panorama canvases

Categories

(Firefox Graveyard :: Panorama, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 624101

People

(Reporter: joe, Unassigned)

Details

Because we know the panorama canvases are opaque, you should set the moz-opaque attribute on those canvases. It lets us use an RGB24 rather than ARGB32 surface, which is a significant performance benefit.

As long as you're in a privileged context (I think this matters), you can setAttribute("moz-opaque", "true") on the html <canvas> element (*not* the 2D rendering context!), and you'll transparently get the performance benefits.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.