mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
ad5555bf42
A clutter actor might be painted on a stage view with a view scale other than 1. In this case, to show the content in full resolution, the actor must use a higher resolution resource (e.g. texture), which will be down scaled to the stage coordinate space, then scaled up again to the stage view framebuffer scale. Use a 'resource-scale' property to save information and notify when it changes. The resource scale is the ceiled value of the highest stage view scale a actor is visible on. The value is ceiled because using a higher resolution resource consistently results in better output quality. One reason for this is that rendering is often not perfectly pixel aligned, meaning even if we load a resource with a suitable size, due to us still scaling ever so slightly, the quality is affected. Using a higher resolution resource avoids this problem. For situations inside clutter where the actual maximum view scale is needed, a function _clutter_actor_get_real_resource_scale() is provided, which returns the non-ceiled value. Make sure we ignore resource scale computation requests during size requests or allocation while ensure we've proper resource-scale on pre-paint. https://bugzilla.gnome.org/show_bug.cgi?id=765011 https://gitlab.gnome.org/GNOME/mutter/merge_requests/3 |
||
---|---|---|
.. | ||
dbus-utils.c | ||
dbus-utils.h | ||
gen-default-modes.py | ||
meta-backend-native-private.h | ||
meta-backend-native.c | ||
meta-backend-native.h | ||
meta-barrier-native.c | ||
meta-barrier-native.h | ||
meta-clutter-backend-native.c | ||
meta-clutter-backend-native.h | ||
meta-crtc-kms.c | ||
meta-crtc-kms.h | ||
meta-cursor-renderer-native.c | ||
meta-cursor-renderer-native.h | ||
meta-gpu-kms.c | ||
meta-gpu-kms.h | ||
meta-input-settings-native.c | ||
meta-input-settings-native.h | ||
meta-launcher.c | ||
meta-launcher.h | ||
meta-monitor-manager-kms.c | ||
meta-monitor-manager-kms.h | ||
meta-output-kms.c | ||
meta-output-kms.h | ||
meta-renderer-native-gles3.c | ||
meta-renderer-native-gles3.h | ||
meta-renderer-native.c | ||
meta-renderer-native.h | ||
meta-stage-native.c | ||
meta-stage-native.h |