composer: Restrict window rect to primary display.
CRs-Fixed: 2367132
Change-Id: I514d28cff7b3296959d2152ed91a8e5b6588751f
diff --git a/composer/hwc_display_builtin.cpp b/composer/hwc_display_builtin.cpp
index bdeb4de..eaee590 100644
--- a/composer/hwc_display_builtin.cpp
+++ b/composer/hwc_display_builtin.cpp
@@ -142,6 +142,12 @@
is_primary_ = display_intf_->IsPrimaryDisplay();
+ if (is_primary_) {
+ Debug::GetWindowRect(&window_rect_.left, &window_rect_.top,
+ &window_rect_.right, &window_rect_.bottom);
+ DLOGI("Window rect : [%f %f %f %f]", window_rect_.left, window_rect_.top,
+ window_rect_.right, window_rect_.bottom);
+ }
return status;
}