[Webkit-unassigned] [Bug 20838] [CAIRO] needs getImageData and putImageData support

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 16 03:57:30 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=20838





------- Comment #5 from vbs85 at gmx.de  2008-09-16 03:57 PDT -------
(In reply to comment #4)
> Can we use cairo_image_surface_get_stride() instead of
> cairo_format_stride_for_width() in some places here?

You mean reaplce:

+int stride = cairo_format_stride_for_width(CAIRO_FORMAT_ARGB32,
m_size.width());

by

+int stride;
+if (cairo_surface_get_type(m_surface) == CAIRO_SURFACE_TYPE_IMAGE)
+    stride = cairo_image_surface_get_stride(m_surface);
+else
+    stride = cairo_format_stride_for_width(CAIRO_FORMAT_ARGB32,
m_size.width());

and expanse it if necessary?


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list