Mobile/DFBPorting: Difference between revisions

fixed typo
(fixed typo)
(fixed typo)
Line 48: Line 48:
NativeRenderer's Draw function is called for drawing a GTK widget composited with cairo state. NativeRenderer calls cairo_draw_with_xlib that has lot of dependencies on cairo_xlib*. cairo_draw_with_xlib does all the fancy stuff (complex transforms) and finally calls NativeDraw with the Drawable associated with the cairo surface. cairo_xlib provides API to obtain Drawable associated with a given Cairo surface.
NativeRenderer's Draw function is called for drawing a GTK widget composited with cairo state. NativeRenderer calls cairo_draw_with_xlib that has lot of dependencies on cairo_xlib*. cairo_draw_with_xlib does all the fancy stuff (complex transforms) and finally calls NativeDraw with the Drawable associated with the cairo surface. cairo_xlib provides API to obtain Drawable associated with a given Cairo surface.


According to Vlad (on irc), cairo_draw_with_xlib is really there for supporting complex transforms (rotation, affine-transorons etc) that gfx natively doesn't support but depends on cairo. Effect of disabling cairo_draw_with_xlib is that the SVG and Canvas will not work; but native theming will work fine.
According to Vlad (on irc), cairo_draw_with_xlib is really there for supporting complex transforms (rotation, affine-transformations etc) that gfx natively doesn't support but depends on cairo. Effect of disabling cairo_draw_with_xlib is that the SVG and Canvas will not work; but native theming will work fine.




Line 58: Line 58:
** widget/src/gtk2/nsNativeThemeGTK.cpp
** widget/src/gtk2/nsNativeThemeGTK.cpp
** layout/generic/nsObjectFrame.cpp
** layout/generic/nsObjectFrame.cpp


==== Proposed Porting Approach ====
==== Proposed Porting Approach ====
93

edits