Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-9772

Optimize Item.transformOrigin implementation

    XMLWordPrintable

Details

    • 575f0064bd91e26daa75805c142c10a04a32c2fd

    Description

      As the default transformOrigin in QML is "Center", every time we change item geometry we recalculate the transformOriginPoint (which is the only concept understood by GraphicsView) and set it on the QGraphicsItem. This is especially costly the first time as it forces the creation of the transformData private member. Presumably this also has a cost at paint time. Most of the time the transformOriginPoint has no effect (if the item has no transforms), so this is an unnecessary cost.

      On the n900, this amounts to 0.6ms over 11 items.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            aakenned Aaron Kennedy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes