Closed Bug 112635 Opened 23 years ago Closed 23 years ago

[Xlib] XXlibRgb revamp ...

Categories

(Core :: XUL, enhancement, P1)

All
Linux
enhancement

Tracking

()

RESOLVED FIXED
mozilla0.9.8

People

(Reporter: roland.mainz, Assigned: roland.mainz)

References

Details

Attachments

(1 file, 6 obsolete files)

I'll file an all-in-one patch to fix the following bugs/RFEs:
- bug 112634 [Xlib] Support NS4.x "-visual" option to force a specific visual
- bug 83355  [xlib] Xlib port doesn't use MIT-SHM extension
- bug 79100  Xprint does not print grayscale
Accepting bug ...
Blocks: 79100, 83355, 112634
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.7
Blocks: 79119
Blocks: 112688
More items to fix:
- bug 112688 [Xlib] StaticColor8 not working in Mozilla
Priority: -- → P1
Attached patch Patch for 2001-11-26-08-trunk (obsolete) — Splinter Review
All-in-one patch for all issues ...
Requesting r=/sr= ...
Keywords: patch, review
Attachment #59742 - Flags: needs-work+
Better patch, I fixed a crash which occured during browser buster stress
testing ...
Attachment #59742 - Attachment is obsolete: true
I will be reviewing this patch on Solaris 8 Sparc
gisburn

The patch went through fine but did not compile correctly

make[4]: Entering directory `/export/home/mozilla/gfx/src/xlibrgb'
xlibrgb.c
Building deps for xlibrgb.c
/opt/SUNWspro/bin/cc -o xlibrgb.o -c -DOSTYPE=\"SunOS5\" -DOSARCH=\"SunOS\"
-DOJI -D_IMPL_NS_GFXONXP -DUSE_MOZILLA_TYPES   -I../../../dist/include/xlibrgb
-I../../../dist/include -I/export/home/mozilla/dist/include/nspr     
-I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2
-I/usr/local/lib/glib/include -I/usr/openwin/include -I/usr/openwin/include  
-KPIC -I/usr/openwin/include -mt  -DNDEBUG -DTRIMMED -O -I/usr/openwin/include
-DBROKEN_QSORT=1 -DNSCAP_DISABLE_DEBUG_PTR_TYPES=1 -DD_INO=d_ino
-DSTDC_HEADERS=1 -DHAVE_ST_BLKSIZE=1 -DHAVE_INT16_T=1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IR=\".mozilla\" -DMOZ_XUL=1 -DINCLUDE_XUL=1 -DNS_MT_SUPPORTED=1
-DUSE_IMG2=1 -DMOZ_DLL_SUFFIX=\".so\" -DXP_UNIX=1 -DUNIX_ASYNC_DNS=1
-DJS_THREADSAFE=1 -DNS_PRINT_PREVIEW=1  -DMOZILLA_CLIENT xlibrgb.c
"xlibrgb.c", line 282: prototype mismatch: 10 args passed, 8 expected
cc: acomp failed for xlibrgb.c
gmake[4]: *** [xlibrgb.o] Error 2
gmake[4]: Leaving directory `/export/home/mozilla/gfx/src/xlibrgb'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/export/home/mozilla/gfx/src'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/export/home/mozilla/gfx'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/export/home/mozilla'
gmake: *** [default] Error 2
I fixed dcran's build problems and added a "safeguard" that this will never
happen again ...
Attachment #59832 - Attachment is obsolete: true
After having Roland's new patch all compiled fine and moz is running like a champ.

Solaris 8 10/01

r=dcran
Requesting sr= ...
<pocemit> In file included from
          ../../../../mozilla/widget/src/xlibxtbin/xlibxtbin.cpp:23:
<pocemit> ../../../dist/include/xlibrgb/xlibrgb.h:101: parse error before
          `template'


line 101:
<pocemit> xxlib_rgb_create_handle (const char *name,
<pocemit>                          Display *display, Screen *screen,
<pocemit>                          XVisualInfo *template, long template_mask);

We don't want to call a variable "template" since thats a c++ reserved word...

s/template/xtemplate

tim
Comment on attachment 59877 [details] [diff] [review]
New patch for 2001-11-26-08-trunk

pocemit found some issues on LSB machines ...
Attachment #59877 - Flags: needs-work+
Updated patch per pocemit's comments
Attachment #59877 - Attachment is obsolete: true
Attachment #60451 - Flags: needs-work+
Attached image the demonstration (obsolete) —
still some MSB/LSB issues...
Images are broken if SHM is used. if SHM is disabled on command line, images
are OK. (only some images are broken with SHM).
Comment on attachment 60451 [details] [diff] [review]
New patch for 2001-11-30-08-trunk

I need to build the Zilla on a LSB machine.

I'll file a patch with MIT-SHM turned-off for now... I need the other bugs
fixed and kill this one next week (e.g. after 0.9.7 freeze) ...
Same as attachment 60451 [details] [diff] [review] but with MIT-SHM support turned off for now. I#ll
defer that until I have a test configuration ...
Attachment #60451 - Attachment is obsolete: true
Attachment #60460 - Attachment is obsolete: true
|#ifdef|'ed MIT-SHM support out - not all platforms have support for this. I
filed bug 113743 ("Need configure-test for X11/extensions/XShm.h") to get a
configure.in test - we can reenable this code once we have a test for it ...
Attachment #60585 - Attachment is obsolete: true
Attachment #60592 - Flags: review+
works for me with the latest patch, of course without SHM.
Thanks gisburn.
BTW, what about renaming xxlib_rgb back into xlib_rgb_?

tim
pocemit write:
> works for me with the latest patch, of course without SHM.
> Thanks gisburn.

Sorry about that, I need to reproduce the color problems on little-endian
machines first - but I assume the patch to fix that will be much smaller than
this monster.
If we get sr= for this one fast I can try to get MIT-SHM working in 0.9.7 ...
hopefully ...

> BTW, what about renaming xxlib_rgb back into xlib_rgb_?

That would add another huge pile of changes to the patch (which is already
incredible big). Not now... later. It's on my ToDo list ...
pocemit, have you done a code level review of this?
Target Milestone: mozilla0.9.7 → mozilla0.9.8
A large part of the shm code was from a bug I opened earlier for SHM support in
xlib port. Yes, I looked over the last posted patch and it looks OK. It will
probably not apply cleanly by now though.
Yup... the patch has rotten a lot (well... it's an month old patch).
I'll file an updated patch in a few hours ...
Suprise:
-- snip --
% gpatch -p0 --dry-run <attachment.cgi\?id\=60592\&action\=view 
patching file mozilla/gfx/src/xlib/Makefile.in
Hunk #1 succeeded at 112 (offset 7 lines).
patching file mozilla/gfx/src/xlib/XIE.c
patching file mozilla/gfx/src/xlibrgb/xlibrgb.c
patching file mozilla/gfx/src/xlibrgb/xlibrgb.h
patching file mozilla/gfx/src/xprint/nsXPrintContext.cpp
Hunk #2 succeeded at 175 (offset 5 lines).
patching file mozilla/gfx/src/xprint/xprintutil.h
patching file mozilla/widget/src/xlib/nsAppShell.cpp
-- snip --

The patch still works!

jag ?
Too much xlib/xprint fu for me. blizzard, care to give this a shot?
Blocks: 119491
Comment on attachment 60592 [details] [diff] [review]
New patch for 2001-11-30-08-trunk

rs=attinasi - rubber stamping more or less, this is not my area of experteise,
but the code looks good and I see no obvious errors. I'm running on the
assumption that this is tested to work and not cause leaks...
Attachment #60592 - Flags: superreview+
Fix checked in
(http://bonsai.mozilla.org/cvsquery.cgi?module=MozillaTinderboxAll&branch=HEAD&cvsroot=/cvsroot&date=explicit&mindate=1011137220&maxdate=1011137640&who=timeless%25mac.com),
marking bug as FIXED.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: