Closed
Bug 232520
Opened 22 years ago
Closed 21 years ago
nsImageBeOS needs cleanup
Categories
(Core Graveyard :: GFX: BeOS, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.7final
People
(Reporter: sergei_d, Assigned: sergei_d)
Details
(Keywords: fixed-aviary1.0, perf)
Attachments
(1 file)
|
29.65 KB,
patch
|
thesuckiestemail
:
review+
|
Details | Diff | Splinter Review |
Do we really need to recreate image (inlcluding delete/new BBitmap and copyying
again all bytes) in ::ImageUpdated()?(Win and OS/2 don't do it.)
And we are working permanently with single B_RGBA32 format, all remaining
color-space related conversions is work of app-server.
Do we really need anything in ::Optimize()? At least until we don't deal with
BDirectWindow.
Also ::DrawToImage(). Tor has plans to remove it from nsImagePlatform, but now
it is hardly optimized - too much arithmetics in loops.
| Assignee | ||
Comment 1•22 years ago
|
||
Simon, i think all nsImage optimization will go here, incl. changes you planned
Assignee: beos → sergei_d
Keywords: perf
| Assignee | ||
Comment 2•22 years ago
|
||
2 tangobravo.
Btw, one if improvements may be use of cached tmpbitmap, as i did for other
objects in JetGFX patches. Thread-safe place for this purpose is nsSurfaceBeOS.
Here is what i mean:
To avoid newing/deleting tmptile bitpmap, we may have permanent bitmap, not big,
but effective for most cases, about 160 KB, to say - 200*200. If tile image is
less than those dimensions, we will use it (as now with your patches we use
exact restricted rects as DrawToBitmap arguments.
And only if tile image is larger, we will get it from heap.
| Assignee | ||
Comment 3•22 years ago
|
||
Rewrite of DrawTile() - using offsets and decoded rect
Rewrite of other methods to use decoded rect.
#include imgScaler.h removed - we're using native scaling.
| Assignee | ||
Comment 4•22 years ago
|
||
Comment on attachment 144423 [details] [diff] [review]
Patch (diff -up4)
review request.
Attachment #144423 -
Flags: review?(simontaylor2)
| Assignee | ||
Comment 5•22 years ago
|
||
Setting target milestone.
P.S. to Simon abput patch.
After some experiments i simplified DrawTile code to always use tiled bitmap. No
big overhead according my test, but removes several issues on drawing of complex
multilayered pages with transparency etc
Target Milestone: --- → mozilla1.7final
| Assignee | ||
Comment 6•21 years ago
|
||
Comment on attachment 144423 [details] [diff] [review]
Patch (diff -up4)
changing reviewer
Attachment #144423 -
Flags: review?(simontaylor2) → review?(thesuckiestemail)
Comment on attachment 144423 [details] [diff] [review]
Patch (diff -up4)
I've looked at the patch and to me it looks ok. DrawToImage part is a bit hard
for me to confirm though.
(It applies and works nicely)
Attachment #144423 -
Flags: review?(thesuckiestemail) → review+
| Assignee | ||
Comment 8•21 years ago
|
||
checked in 2004-06-13 11:27
"Bug 232520, nsImageBeOS needs cleanup. Optimized DrawTile, DrawToImage,
implemented partial image update, crash-leak in DrawToImage removed.
r=thesuckiestemail@yahoo.se"
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 9•21 years ago
|
||
Checked in on AVIARY by db48x%yahoo.com:
Check in several BeOS bugs that are already checked in on the trunk. All are
r=twh (thesuckiestemail@yahoo.se) except the last which is r=Sergei Dolgov
(sergei_d@fi.tartu.ee). a=carte blanche ([03:53:40]
<nielx!~nielx@84.119.151.125> We've been basically given a carte blanche for
any change that involves the beos-only code)
Keywords: fixed-aviary1.0
Updated•17 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•