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

Side by Side Diff: ui/ozone/platform/drm/host/drm_native_display_delegate.h

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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_OZONE_PLATFORM_DRM_HOST_DRM_NATIVE_DISPLAY_DELEGATE_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_HOST_DRM_NATIVE_DISPLAY_DELEGATE_H_
6 #define UI_OZONE_PLATFORM_DRM_HOST_DRM_NATIVE_DISPLAY_DELEGATE_H_ 6 #define UI_OZONE_PLATFORM_DRM_HOST_DRM_NATIVE_DISPLAY_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
12 #include "ui/display/types/native_display_delegate.h" 12 #include "ui/display/types/native_display_delegate.h"
13 13
14 namespace ui { 14 namespace ui {
15 15
16 class DrmDisplayHostManager; 16 class DrmDisplayHostManager;
17 17
18 class DrmNativeDisplayDelegate : public NativeDisplayDelegate { 18 class DrmNativeDisplayDelegate : public NativeDisplayDelegate {
19 public: 19 public:
20 DrmNativeDisplayDelegate(DrmDisplayHostManager* display_manager); 20 DrmNativeDisplayDelegate(DrmDisplayHostManager* display_manager);
21 ~DrmNativeDisplayDelegate() override; 21 ~DrmNativeDisplayDelegate() override;
22 22
23 void OnConfigurationChanged(); 23 void OnConfigurationChanged();
24 void OnDisplaySnapshotsInvalidated();
24 25
25 // NativeDisplayDelegate overrides: 26 // NativeDisplayDelegate overrides:
26 void Initialize() override; 27 void Initialize() override;
27 void GrabServer() override; 28 void GrabServer() override;
28 void UngrabServer() override; 29 void UngrabServer() override;
29 void TakeDisplayControl(const DisplayControlCallback& callback) override; 30 void TakeDisplayControl(const DisplayControlCallback& callback) override;
30 void RelinquishDisplayControl( 31 void RelinquishDisplayControl(
31 const DisplayControlCallback& callback) override; 32 const DisplayControlCallback& callback) override;
32 void SyncWithServer() override; 33 void SyncWithServer() override;
33 void SetBackgroundColor(uint32_t color_argb) override; 34 void SetBackgroundColor(uint32_t color_argb) override;
(...skipping 29 matching lines...) Expand all
63 DrmDisplayHostManager* display_manager_; // Not owned. 64 DrmDisplayHostManager* display_manager_; // Not owned.
64 65
65 base::ObserverList<NativeDisplayObserver> observers_; 66 base::ObserverList<NativeDisplayObserver> observers_;
66 67
67 DISALLOW_COPY_AND_ASSIGN(DrmNativeDisplayDelegate); 68 DISALLOW_COPY_AND_ASSIGN(DrmNativeDisplayDelegate);
68 }; 69 };
69 70
70 } // namespace ui 71 } // namespace ui
71 72
72 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_NATIVE_DISPLAY_DELEGATE_H_ 73 #endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_NATIVE_DISPLAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/host/drm_display_host_manager.cc ('k') | ui/ozone/platform/drm/host/drm_native_display_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698