--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/skia-discuss.
For more options, visit https://groups.google.com/d/optout.
Back in the days of that post you linked, SkScalar could be either a float or a 16.16 fixed point. We've since dropped the fixed point option, so it's always float now.Logically SkScalar could be replaced with a double, but I bet there are many parts of the code base that will assume it's 4 byte, or even exactly a 1-8-23 layout float. This would be a challenging project.I believe we still support floats or doubles for SkMatrix44, but that is not the 3x3 matrix (SkMatrix) used by most of the drawing pipeline.
On Mon, Jan 8, 2018 at 8:53 AM 扈马克 <geoh...@gmail.com> wrote:
--MarcoThanks for any help,However it is quite old, so I don't know if it is still valid.I'm writing a mapping application with different rendering backends. With skia, I have precision problems when zooming in. I think the reason is that SKMatrix / SkScala per default is float instead of double.Is there a way to set up a transformation with double precision? I found only the following article regarding this topic:
https://groups.google.com/forum/#!topic/skia-discuss/Ie3d-i0PAsM
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/skia-discuss.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss+unsubscribe@googlegroups.com.
Just off-hand, do you think it would be sufficient for your case if matrix was doubles, but geometries (i.e. paths, rects) were still floats?
On Mon, Jan 8, 2018 at 9:16 AM, 'Mike Klein' via skia-discuss <skia-d...@googlegroups.com> wrote:
Back in the days of that post you linked, SkScalar could be either a float or a 16.16 fixed point. We've since dropped the fixed point option, so it's always float now.Logically SkScalar could be replaced with a double, but I bet there are many parts of the code base that will assume it's 4 byte, or even exactly a 1-8-23 layout float. This would be a challenging project.I believe we still support floats or doubles for SkMatrix44, but that is not the 3x3 matrix (SkMatrix) used by most of the drawing pipeline.
On Mon, Jan 8, 2018 at 8:53 AM 扈马克 <geoh...@gmail.com> wrote:
--MarcoThanks for any help,However it is quite old, so I don't know if it is still valid.I'm writing a mapping application with different rendering backends. With skia, I have precision problems when zooming in. I think the reason is that SKMatrix / SkScala per default is float instead of double.Is there a way to set up a transformation with double precision? I found only the following article regarding this topic:
https://groups.google.com/forum/#!topic/skia-discuss/Ie3d-i0PAsM
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/skia-discuss.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss+unsubscribe@googlegroups.com.