当前时区 GMT+8, 现在时间是 2008-8-28 13:23 游客: 注册 登录 仅登录论坛 | 搜索 帮助


标题: 玩了一把glitz为后端的cairo的gtk2.8
jcome
公社版主



UID 4161
精华 10
积分 2778
帖子 1335
阅读权限 225
注册 2002-10-25
来自 Work Song...
状态 离线
发表于 2005-8-19 10:49  资料  主页 短消息  加为好友 
》》GTK2.8不打算使用硬件加速
xserver支持不就可以了吗,
打开显卡的硬件加速不是为gtk,而是为xserver。





顶部
rockmen
中级会员
Rank: 3Rank: 3


UID 31761
精华 0
积分 656
帖子 263
阅读权限 30
注册 2003-4-24
来自 China
状态 离线
发表于 2005-8-19 11:27  资料  短消息  加为好友 
[quote:10c33e3e49="jcome"]》》GTK2.8不打算使用硬件加速
xserver支持不就可以了吗,
打开显卡的硬件加速不是为gtk,而是为xserver。[/quote]

所以只能等,不知道XGL什么时候才会加入到xorg里面,还有luminocity也不知道什么时候会用得上





顶部
dukeduan
银牌会员
Rank: 6Rank: 6


UID 5347
精华 3
积分 2506
帖子 1274
阅读权限 70
注册 2002-11-15
来自 Yunnan Dali
状态 离线
发表于 2005-8-19 12:23  资料  短消息  加为好友 
xgl只有两个开发人员,其中一个已经不愿意继续下去了,呵呵。
看到forums.gentoo上说的。不过面包会有的,一切都会有的。





显谓五乘八藏之修多罗。 密谓三业四主之单多罗。
顶部
rockmen
中级会员
Rank: 3Rank: 3


UID 31761
精华 0
积分 656
帖子 263
阅读权限 30
注册 2003-4-24
来自 China
状态 离线
发表于 2005-8-19 13:52  资料  短消息  加为好友 
[quote:b62e3eba31="dukeduan"]xgl只有两个开发人员,其中一个已经不愿意继续下去了,呵呵。
看到forums.gentoo上说的。不过面包会有的,一切都会有的。
[/quote]
可以给个连接看看吗?





顶部
jcome
公社版主



UID 4161
精华 10
积分 2778
帖子 1335
阅读权限 225
注册 2002-10-25
来自 Work Song...
状态 离线
发表于 2005-8-19 14:19  资料  主页 短消息  加为好友 
www.osnews.com
http://osnews.com/story.php?news_id=11550





顶部
jcome
公社版主



UID 4161
精华 10
积分 2778
帖子 1335
阅读权限 225
注册 2002-10-25
来自 Work Song...
状态 离线
发表于 2005-8-19 14:20  资料  主页 短消息  加为好友 
顺便贴个 Owen Taylor on X/Cairo/GTK+ Integration:
http://osnews.com/story.php?news_id=9609

QUOTE:
GTK+ is now the first major toolkit to depend on the Cairo vector graphics library which is designed to provide high-quality display and print output. Cairo will add 3 more dependencies to GTK: itself, glitz and libpixman (after atk, Pango, Glib, FontConfig and the standard X libs). The addition is now part of the HEAD of GTK's CVS. Some might argue that Cairo should have been integrated to X instead (as an extension or as part of the core), so all toolkits would get the benefits, transparently (if enough engineering was to go into this). I sent an email to selected GTK+ developers last May about this, and here is what Owen Taylor, GTK's project leader, replied: Update: GTK+ 2.6.2 released.

[...]
The work that Carl [Worth] has been doing at creating a really high quality vector graphics library is only a portion of the solution, yes, but it is a very important part. By adopting this into GTK+, Qt, Mozilla, OpenOffice, etc, we'll share more code and everybody will render better.

In some cases this adoption will be under the surface and the user will just see better rendering. In other cases (and we plan to do this in GTK+) the Cairo programming interface will be exposed directly, so that we don't just get more uniform rendering, we'll also have a more uniform programmer interface.

You ask why Cairo can't just be integrated into X at a low level and make everything look good. This doesn't work because Cairo contains all sorts of concepts that just aren't in the X currently. While the X API can say "Draw a rectangle", Cairo can say "Draw a Bezier curve with 50 percent alpha and a radial gradient". New and very different API is required to take advantage of these capabilities.

You ask why we need all these different backends, all these dependencies, all these different modules. While they may seem to make things worse for someone trying to get stuff built and playing around with it they actually will make a big difference getting this stuff deployed quickly:

- - Because Cairo supports multiple backends, I can use Cairo in GTK+ which needs to work on Windows and other platforms as well.

- - Because Cairo can be used with an unmodified X server, I can use Cairo in GTK+ as soon as Cairo is released, instead of waiting for all our users to get a new X server.

- - Because development is being done in a modular fashion, it can proceed in a much faster way; a Cairo release can be made without waiting for an entire new release of the X window system.

Yes, there is some temporary pain (which build scripts like jhbuild [gnome-building script] can make a lot easier), but in the long run, these packages will get incorporated into operating system distributions and users won't have to worry about the number of individual packages someone building from source would have to download.

Regards,
Owen






顶部
cobranail
公社版主



UID 13442
精华 8
积分 14297
帖子 9218
阅读权限 225
注册 2003-1-20
来自 新无忧宫
状态 离线
发表于 2005-8-19 18:52  资料  主页 短消息  加为好友 
由于firefox疯狂的carsh,暂时又把gtk2降回来了
使用glitz之后,打开和关闭窗口有明显的闪烁,看了还是xgl比较值得期待,虽然不知道还要等到何年何月





我说LZ啊,做个正常人就那么难吗?
顶部
alexe
新手上路
Rank: 1



UID 197725
精华 0
积分 36
帖子 16
阅读权限 10
注册 2005-8-16
状态 离线
发表于 2005-8-20 12:18  资料  短消息  加为好友 
那楼主这个标题就有些不对了,大家都以为你能用glitz做gtk的backend所以才进来看看。

其实你只是打开了xserver的硬加速而已,和gtk根本关系不大(gtk没有地方去调用)。

顶部
cobranail
公社版主



UID 13442
精华 8
积分 14297
帖子 9218
阅读权限 225
注册 2003-1-20
来自 新无忧宫
状态 离线
发表于 2005-8-20 23:15  资料  主页 短消息  加为好友 
并非如此,Xorg并没有被硬件加速,只有cairo使用了glitz,只有gtk的程序使用的cairo

最好的办法就是自己也去试一下





我说LZ啊,做个正常人就那么难吗?
顶部
 


Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
清除 Cookies - 联系我们 - 中国Linux公社 - WAP