diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
commit | 8dd16259287f58f9273002717ec4d27e97127719 (patch) | |
tree | 3863e62a53829a84037444beab3abd4ed9dfc7d0 /image/DecodedSurfaceProvider.cpp | |
parent | Releasing progress-linux version 126.0.1-1~progress7.99u1. (diff) | |
download | firefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz firefox-8dd16259287f58f9273002717ec4d27e97127719.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'image/DecodedSurfaceProvider.cpp')
-rw-r--r-- | image/DecodedSurfaceProvider.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/image/DecodedSurfaceProvider.cpp b/image/DecodedSurfaceProvider.cpp index cdfc27bcda..f60b52018e 100644 --- a/image/DecodedSurfaceProvider.cpp +++ b/image/DecodedSurfaceProvider.cpp @@ -222,6 +222,10 @@ nsresult DecodedSurfaceProvider::UpdateKey( nsresult SimpleSurfaceProvider::UpdateKey( layers::RenderRootStateManager* aManager, wr::IpcResourceUpdateQueue& aResources, wr::ImageKey& aKey) { + if (mDirty) { + return NS_ERROR_FAILURE; + } + RefPtr<SourceSurface> surface = mSurface->GetSourceSurface(); if (!surface) { return NS_ERROR_FAILURE; @@ -230,5 +234,7 @@ nsresult SimpleSurfaceProvider::UpdateKey( return SharedSurfacesChild::Share(surface, aManager, aResources, aKey); } +void SimpleSurfaceProvider::InvalidateSurface() { mDirty = true; } + } // namespace image } // namespace mozilla |