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

Unified Diff: services/ui/ws/display.cc

Issue 2580063002: Mustash: Ensure surfaces submitted to Mus by WM and embedders contain Surfaces with embeded content. (Closed)
Patch Set: Make the clipping layer ui::LAYER_NOT_DRAWN. 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
Index: services/ui/ws/display.cc
diff --git a/services/ui/ws/display.cc b/services/ui/ws/display.cc
index e8cb98cf9d6d9958c3c41fd57445a5f9918ceb2a..406dfb77acb47dcd82b5646d3845c06882c23b15 100644
--- a/services/ui/ws/display.cc
+++ b/services/ui/ws/display.cc
@@ -270,6 +270,13 @@ ServerWindow* Display::GetRootWindow() {
return root_.get();
}
+ServerWindow* Display::GetActiveRootWindow() {
+ WindowManagerDisplayRoot* display_root = GetActiveWindowManagerDisplayRoot();
+ if (display_root)
+ return display_root->root();
+ return nullptr;
+}
+
void Display::OnAcceleratedWidgetAvailable() {
display_manager()->OnDisplayAcceleratedWidgetAvailable(this);
InitWindowManagerDisplayRoots();

Powered by Google App Engine
This is Rietveld 408576698