Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(434)

Unified Diff: ui/ozone/platform/drm/host/drm_native_display_delegate.cc

Issue 2571543002: Fix use after free for cached_displays_. (Closed)
Patch Set: Add invalidate to tests. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/drm/host/drm_native_display_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/host/drm_native_display_delegate.cc
diff --git a/ui/ozone/platform/drm/host/drm_native_display_delegate.cc b/ui/ozone/platform/drm/host/drm_native_display_delegate.cc
index 0a16a7ee600746ce731bec2a141c12c2888079a4..2fb5777c024eb01716abf90d81728d839dd5d252 100644
--- a/ui/ozone/platform/drm/host/drm_native_display_delegate.cc
+++ b/ui/ozone/platform/drm/host/drm_native_display_delegate.cc
@@ -25,6 +25,11 @@ void DrmNativeDisplayDelegate::OnConfigurationChanged() {
observer.OnConfigurationChanged();
}
+void DrmNativeDisplayDelegate::OnDisplaySnapshotsInvalidated() {
+ for (NativeDisplayObserver& observer : observers_)
+ observer.OnDisplaySnapshotsInvalidated();
+}
+
void DrmNativeDisplayDelegate::Initialize() {
display_manager_->AddDelegate(this);
}
« no previous file with comments | « ui/ozone/platform/drm/host/drm_native_display_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698