[webkit-dev] Implementation of 3d transforms in webkit ?

Simon Fraser simon.fraser at apple.com
Wed Mar 10 09:02:22 PST 2010

On Mar 10, 2010, at 1:38 AM, Aneesh Bhasin wrote:

> Hi all,
> I am new to webkit code-base and am trying to delve a bit deeper into
> webkit code and could see that webkit 3d transformations are
> implemented in
> WebCore/platform/graphics/transforms/TransformationMatrix.cpp.
> Is there any reason for not using a library (e.g. clutter) to perform
> these transforms so that on supported platforms, it could be hardware
> accelerated ? And is someone in the community working on this ?

One of the reasons that the WebKit codebase is a lot smaller than that of some other browsers is that WebKit takes advantage of frameworks supplied by the operating system when possible. WebKit does not attempt to abstract out all platform differences across the board.

In the case of 3D transforms, WebKit takes advantage of Core Animation on platforms that support it. However, the code is structured in such a way that another platform can substitute its own backend, so there's nothing to stop another port or ports from using clutter.


More information about the webkit-dev mailing list