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

Unified Diff: ui/compositor/layer.h

Issue 2027953002: Revert of 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 f5d4526142669b2b692cce0a08eb963c72153d57..57c2a5a69b9fa7a134eb46dd41227cd80ad3c1fb 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -334,6 +334,7 @@
// 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_; }
@@ -378,10 +379,6 @@
// Triggers a call to SwitchToLayer.
void SwitchCCLayerForTest();
-
- const cc::Region& damaged_region_for_testing() const {
- return damaged_region_;
- }
private:
friend class LayerOwner;
@@ -453,13 +450,9 @@
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 paint_region_;
+ cc::Region damaged_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