Closed Bug 333177 Opened 18 years ago Closed 18 years ago

Update canvas internal interfaces and optimize

Categories

(Core :: Graphics: Canvas2D, defect)

1.8 Branch
PowerPC
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: vlad, Assigned: vlad)

References

Details

Attachments

(3 files, 1 obsolete file)

This patch optimizes the internal canvas interfaces to allow us to use platform-native surfaces where we can, for some performance speedups.  It also fixes the internal interfaces in such a way that we can support contexts defined outside of layout (e.g. via extensions).

It also fixes a few 2d canvas bugs.
This turns nsIRenderingContext's RetreiveNativeGraphicData into returning a real void*, instead of a PRUint32 -- we were stuffing a pointer into it in in all platforms that used it, which had the potential of breaking badly on any 64-bit builds.

This should go for both trunk and branch.
Attachment #217621 - Flags: review?(pavlov)
Er, real patch; previous one was missing a fix to nsObjectFrame.
Attachment #217621 - Attachment is obsolete: true
Attachment #217622 - Flags: review?(pavlov)
Attachment #217621 - Flags: review?(pavlov)
This is the actual canvas patch, against the 1.8 branch.  This can go onto the trunk, but the trunk canvas code will be replaced with a rewritten version shortly -- I think I can shoehorn this in if we want it to bake for a few days there.
Attachment #217624 - Flags: review?(pavlov)
I really want this in Firefox2!
No longer blocks: 333613
Flags: blocking1.8.1?
From conversation with vlad, the plan:

- land this on trunk and merge
- prepare 1.8 patch from that code, including toDataURL

Note: need more info about image encoder dependencies.
Attachment #217622 - Flags: review?(pavlov) → review+
Attachment #217624 - Flags: review?(pavlov) → review+
This is a trunk version of the improvements, that merges the new work with the existing image encoder and security checks on the trunk.  After this gets checked in, I'll merge it all (new stuff + image encoders + security checks) to the branch.
Attachment #218874 - Flags: review?(pavlov)
Attachment #218874 - Flags: review?(pavlov) → review+
This landed on the trunk; the 1.8 version of this is 333613.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Clearing blocking 1.8.1 request as per comment 7.
Flags: blocking1.8.1?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: