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

Unified Diff: ui/compositor/layer.cc

Issue 2126873005: [ash-md] Doesn't recreate a rounded rect mask for overview windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [ash-md] Doesn't recreate a rounded rect mask for overview windows (rebased) Created 4 years, 5 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 | « ash/common/wm/overview/scoped_transform_overview_window.cc ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index d845d6868cef43dc12e274624d36d1208c64b010..f2dae60b54049f0db4543ec3f8c50feb97104ff2 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -673,6 +673,11 @@ bool Layer::SchedulePaint(const gfx::Rect& invalid_rect) {
damaged_region_.Union(invalid_rect);
ScheduleDraw();
+
+ if (layer_mask_) {
+ layer_mask_->damaged_region_.Union(invalid_rect);
+ layer_mask_->ScheduleDraw();
+ }
return true;
}
@@ -690,6 +695,8 @@ void Layer::SendDamagedRects() {
for (cc::Region::Iterator iter(damaged_region_); iter.has_rect(); iter.next())
cc_layer_->SetNeedsDisplayRect(iter.rect());
+ if (layer_mask_)
+ layer_mask_->SendDamagedRects();
if (content_layer_)
paint_region_.Union(damaged_region_);
« no previous file with comments | « ash/common/wm/overview/scoped_transform_overview_window.cc ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698