On Mon, Jun 2, 2014 at 7:07 PM, Robert O'Callahan <rob...@ocallahan.org>
wrote:
> Off the top of my head, the places in Gecko I know of that use isIdentity
> or is2D fall into two categories:
> 1) math performance optimizations
> 2) (is2D only) we're going to take an implementation approach that only
> works for 2D affine transforms, and either a) there is no support for 3D
> perspective transforms at all, or b) that support is implemented very
> differently (e.g. transforming Bezier control points vs rendering to a
> bitmap and applying 3D transform to that).
>
> For category #1 we can perhaps avoid having Web developers call
> isIdentity/is2D, by optimizing internally. We simply haven't bothered to do
> those optimizations in Gecko matrix classes, we let the callers do it (but
> perhaps we should reconsider that).
>

Yes, isIdentity is used as an indication that nothing needs to be done or
that the transform hasn't changed.
Maybe we should rename it to isDefault, isInitial or isNoOp?


> For category #2, I can't see a way around exposing is2D to the Web in some
> form.
>
>
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to