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

Unified Diff: ui/compositor/layer.h

Issue 2018223002: Clear ui::Layer damaged_region_ after commit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | ui/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index 57c2a5a69b9fa7a134eb46dd41227cd80ad3c1fb..f5d4526142669b2b692cce0a08eb963c72153d57 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -334,7 +334,6 @@ class COMPOSITOR_EXPORT Layer
// Uses damaged rectangles recorded in |damaged_region_| to invalidate the
// |cc_layer_|.
void SendDamagedRects();
- void ClearDamagedRects();
const cc::Region& damaged_region() const { return damaged_region_; }
@@ -380,6 +379,10 @@ class COMPOSITOR_EXPORT Layer
// Triggers a call to SwitchToLayer.
void SwitchCCLayerForTest();
+ const cc::Region& damaged_region_for_testing() const {
+ return damaged_region_;
+ }
+
private:
friend class LayerOwner;
@@ -450,9 +453,13 @@ class COMPOSITOR_EXPORT Layer
bool fills_bounds_opaquely_;
bool fills_bounds_completely_;
+ // Union of damaged rects, in layer space, that SetNeedsDisplayRect should
+ // be called on.
+ cc::Region damaged_region_;
+
// Union of damaged rects, in layer space, to be used when compositor is ready
// to paint the content.
- cc::Region damaged_region_;
+ cc::Region paint_region_;
int background_blur_radius_;
« no previous file with comments | « no previous file | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698