Closed Bug 343655 Opened 18 years ago Closed 18 years ago

optimize win32 image rendering

Categories

(Core :: Graphics, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: vlad, Assigned: vlad)

References

Details

(Keywords: perf)

Attachments

(1 file, 1 obsolete file)

There's a lot of things that can be done to speed up our image rendering under Win32; right now we just use 24/32-bpp DIBs for everything, and we can do better than that.
This patch adds support for DDB surfaces to cairo and allows nsThebesImage to create them.  There's no usage of MaskBlt or PatBlt yet.  It also optimizes 1x1 image rendering to just do a solid fill instead of going through the image rendering routines.
Assignee: nobody → vladimir
Status: NEW → ASSIGNED
Attached patch better patchSplinter Review
Note that this has StretchBlt disabled (the flag is never set on the surfaces, it's commented out); there are still some issues with that, and I'd rather work on those seperately in a followup.
Attachment #228161 - Attachment is obsolete: true
Attachment #232948 - Flags: review?(pavlov)
Comment on attachment 232948 [details] [diff] [review]
better patch

in cairo-win32.c you have a lot of mixed tab/space stuff where one line is tabs and the next is spaces.  please make it consistent with the rest of the file (tab to 8/space the rest -- whatever cairo's annoying default is?)
make gfxPlatform::DoesARGBImageDataHaveAlpha() protected.  Don't think we want this as a public API.
Attachment #232948 - Flags: review?(pavlov) → review+
So I checked this in, it doesn't seem to have been a Tp win on the tinderboxes, but I'm hoping it's a CPU usage win, esp. for bug 328380.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
this seems to have done more bad than good Vlad
I'll file some bugs later
There's a hole in the Gmail reply box
Depends on: 348191
Depends on: 348218
No longer depends on: 348218
Depends on: 348218
Blocks: 328374
Depends on: 348251
Depends on: 348317
Depends on: 348644
Depends on: 361754
Depends on: 366548
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: