QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: cobranail

玩了一把glitz为后端的cairo的gtk2.8

[复制链接]
发表于 2005-8-19 10:49:53 | 显示全部楼层
》》GTK2.8不打算使用硬件加速
xserver支持不就可以了吗,
打开显卡的硬件加速不是为gtk,而是为xserver。
回复

使用道具 举报

发表于 2005-8-19 11:27:16 | 显示全部楼层
[quote:10c33e3e49="jcome"]》》GTK2.8不打算使用硬件加速
xserver支持不就可以了吗,
打开显卡的硬件加速不是为gtk,而是为xserver。[/quote]

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

使用道具 举报

发表于 2005-8-19 12:23:12 | 显示全部楼层
xgl只有两个开发人员,其中一个已经不愿意继续下去了,呵呵。
看到forums.gentoo上说的。不过面包会有的,一切都会有的。
回复

使用道具 举报

发表于 2005-8-19 13:52:07 | 显示全部楼层
[quote:b62e3eba31="dukeduan"]xgl只有两个开发人员,其中一个已经不愿意继续下去了,呵呵。
看到forums.gentoo上说的。不过面包会有的,一切都会有的。
[/quote]
可以给个连接看看吗?
回复

使用道具 举报

发表于 2005-8-19 14:19:03 | 显示全部楼层
www.osnews.com
http://osnews.com/story.php?news_id=11550
回复

使用道具 举报

发表于 2005-8-19 14:20:30 | 显示全部楼层
顺便贴个 Owen Taylor on X/Cairo/GTK+ Integration:
http://osnews.com/story.php?news_id=9609

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
回复

使用道具 举报

 楼主| 发表于 2005-8-19 18:52:24 | 显示全部楼层
由于firefox疯狂的carsh,暂时又把gtk2降回来了
使用glitz之后,打开和关闭窗口有明显的闪烁,看了还是xgl比较值得期待,虽然不知道还要等到何年何月
回复

使用道具 举报

发表于 2005-8-20 12:18:40 | 显示全部楼层
那楼主这个标题就有些不对了,大家都以为你能用glitz做gtk的backend所以才进来看看。

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

使用道具 举报

 楼主| 发表于 2005-8-20 23:15:19 | 显示全部楼层
并非如此,Xorg并没有被硬件加速,只有cairo使用了glitz,只有gtk的程序使用的cairo

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

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-24 23:47 , Processed in 0.043198 second(s), 12 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表