wayland/surface: don't update preferred color description unless it changed
This avoids clients doing unnecessary work
This commit is contained in:
parent
918ac8b27e
commit
3b28788592
1 changed files with 3 additions and 0 deletions
|
@ -1090,6 +1090,9 @@ const ColorDescription &SurfaceInterface::colorDescription() const
|
||||||
|
|
||||||
void SurfaceInterface::setPreferredColorDescription(const ColorDescription &descr)
|
void SurfaceInterface::setPreferredColorDescription(const ColorDescription &descr)
|
||||||
{
|
{
|
||||||
|
if (d->preferredColorDescription == descr) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
d->preferredColorDescription = descr;
|
d->preferredColorDescription = descr;
|
||||||
if (d->frogColorManagement) {
|
if (d->frogColorManagement) {
|
||||||
d->frogColorManagement->setPreferredColorDescription(descr);
|
d->frogColorManagement->setPreferredColorDescription(descr);
|
||||||
|
|
Loading…
Reference in a new issue