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

Unified Diff: ui/ozone/demo/ozone_demo.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/display/types/native_display_observer.h ('k') | ui/ozone/platform/drm/host/drm_display_host_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/demo/ozone_demo.cc
diff --git a/ui/ozone/demo/ozone_demo.cc b/ui/ozone/demo/ozone_demo.cc
index bbfeff49bb96bd54dcc6a70cba85154ba30a38ab..309e36d0758b51dad29eadff3943b6257b4b2ed7 100644
--- a/ui/ozone/demo/ozone_demo.cc
+++ b/ui/ozone/demo/ozone_demo.cc
@@ -91,6 +91,7 @@ class WindowManager : public ui::NativeDisplayObserver {
// ui::NativeDisplayDelegate:
void OnConfigurationChanged() override;
+ void OnDisplaySnapshotsInvalidated() override;
std::unique_ptr<ui::NativeDisplayDelegate> delegate_;
base::Closure quit_closure_;
@@ -282,6 +283,8 @@ void WindowManager::OnConfigurationChanged() {
base::Bind(&WindowManager::OnDisplaysAquired, base::Unretained(this)));
}
+void WindowManager::OnDisplaySnapshotsInvalidated() {}
+
void WindowManager::OnDisplaysAquired(
const std::vector<ui::DisplaySnapshot*>& displays) {
windows_.clear();
« no previous file with comments | « ui/display/types/native_display_observer.h ('k') | ui/ozone/platform/drm/host/drm_display_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698