subdiff added inline comments.

INLINE COMMENTS

> drm_output.cpp:104
>  {
> -    return QRect(m_globalPos, size());
> +    return QRect(m_globalPos, pixelSize() / scale());
>  }

Instead of dividing on every call, declare new private variable `QSize 
m_scaledSize = pixelSize() / scale()`, and update its value only when m_mode or 
the scale value is changed.

REPOSITORY
  R108 KWin

REVISION DETAIL
  https://phabricator.kde.org/D3498

To: davidedmundson, graesslin, subdiff, #plasma
Cc: subdiff, #kwin, plasma-devel, kwin, progwolff, lesliezhai, ali-mohamed, 
hardening, jensreuterberg, abetts, sebas, apol

Reply via email to