Chromium Code Reviews| Index: ui/compositor/layer.h |
| diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h |
| index 57c2a5a69b9fa7a134eb46dd41227cd80ad3c1fb..ad8755c11ec1a5b6264cf84b1278157672149d1c 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 { |
|
danakj
2016/05/31 19:53:15
const Region&?
|
| + 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_; |