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

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

Issue 1631073002: Relocate ozone gbm overlay config cache to manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased correctly Created 4 years, 11 months 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_window_host.h ('k') | ui/ozone/platform/drm/ozone_platform_gbm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/drm/host/drm_window_host.cc
diff --git a/ui/ozone/platform/drm/host/drm_window_host.cc b/ui/ozone/platform/drm/host/drm_window_host.cc
index 1b17fe25ad00fa12179e8b4d7eacc729f03d27c4..c7898312e8d467f09419a60d7fa0c211752c506f 100644
--- a/ui/ozone/platform/drm/host/drm_window_host.cc
+++ b/ui/ozone/platform/drm/host/drm_window_host.cc
@@ -16,7 +16,7 @@
#include "ui/ozone/platform/drm/host/drm_display_host.h"
#include "ui/ozone/platform/drm/host/drm_display_host_manager.h"
#include "ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h"
-#include "ui/ozone/platform/drm/host/drm_overlay_candidates_host.h"
+#include "ui/ozone/platform/drm/host/drm_overlay_manager.h"
#include "ui/ozone/platform/drm/host/drm_window_host_manager.h"
#include "ui/platform_window/platform_window_delegate.h"
@@ -28,14 +28,15 @@ DrmWindowHost::DrmWindowHost(PlatformWindowDelegate* delegate,
EventFactoryEvdev* event_factory,
DrmCursor* cursor,
DrmWindowHostManager* window_manager,
- DrmDisplayHostManager* display_manager)
+ DrmDisplayHostManager* display_manager,
+ DrmOverlayManager* overlay_manager)
: delegate_(delegate),
sender_(sender),
event_factory_(event_factory),
cursor_(cursor),
window_manager_(window_manager),
display_manager_(display_manager),
- overlay_candidates_host_(nullptr),
+ overlay_manager_(overlay_manager),
bounds_(bounds),
widget_(window_manager->NextAcceleratedWidget()) {
window_manager_->AddWindow(widget_, this);
@@ -195,19 +196,13 @@ void DrmWindowHost::OnChannelEstablished() {
void DrmWindowHost::OnChannelDestroyed() {
}
-void DrmWindowHost::SetOverlayCandidatesHost(
- DrmOverlayCandidatesHostCore* host) {
- overlay_candidates_host_ = host;
-}
-
void DrmWindowHost::SendBoundsChange() {
// Update the cursor before the window so that the cursor stays within the
// window bounds when the window size shrinks.
cursor_->CommitBoundsChange(widget_, bounds_, GetCursorConfinedBounds());
sender_->Send(new OzoneGpuMsg_WindowBoundsChanged(widget_, bounds_));
- if (overlay_candidates_host_)
- overlay_candidates_host_->ResetCache();
+ overlay_manager_->ResetCache();
}
} // namespace ui
« no previous file with comments | « ui/ozone/platform/drm/host/drm_window_host.h ('k') | ui/ozone/platform/drm/ozone_platform_gbm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698