hal/fallback/FallbackScreenConfiguration.cpp
author Andrew Osmond <aosmond@mozilla.com>
Fri, 03 Dec 2021 03:14:01 +0000
changeset 600989 356c521826254fbae435b212923b20801d171950
parent 561873 94098bf0178be3135cb6e7b38cf32da0d98cdf90
permissions -rw-r--r--
Bug 1743761 - Ensure we invalidate substituted images when the preferred size is ready. r=tnikkel Previously with ImageContainers, we would put the new preferred surface into the ImageContainer. When we check if we should invalidate, it would have a different image key, and hence invalidate the image frame and schedule a paint. With ImageProviders, it returns the same key in this case, because the ImageProvider represents a particular surface. As such, we need to actually track when we get a substituted ImageProvider, and invalidate the image frame more aggressively to ensure we get the preferred size. Differential Revision: https://phabricator.services.mozilla.com/D132583

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "FallbackScreenConfiguration.h"

namespace mozilla {
namespace hal_impl {

void EnableScreenConfigurationNotifications() {}

void DisableScreenConfigurationNotifications() {}

void GetCurrentScreenConfiguration(
    hal::ScreenConfiguration* aScreenConfiguration) {
  fallback::GetCurrentScreenConfiguration(aScreenConfiguration);
}

bool LockScreenOrientation(const hal::ScreenOrientation& aOrientation) {
  return false;
}

void UnlockScreenOrientation() {}

}  // namespace hal_impl
}  // namespace mozilla