| Index: ui/compositor/layer.cc
|
| diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
|
| index 2b6f9219c574b40c1bdd6d6e0742c0d47d0a1478..914e000feedff6be8b423b1b2aa44a573e3a6bc2 100644
|
| --- a/ui/compositor/layer.cc
|
| +++ b/ui/compositor/layer.cc
|
| @@ -750,13 +750,14 @@
|
| const gfx::Rect& clip,
|
| ContentLayerClient::PaintingControlSetting painting_control) {
|
| TRACE_EVENT1("ui", "Layer::PaintContentsToDisplayList", "name", name_);
|
| - gfx::Rect local_bounds(bounds().size());
|
| - gfx::Rect invalidation(
|
| - gfx::IntersectRects(damaged_region_.bounds(), local_bounds));
|
| - DCHECK(clip.Contains(invalidation));
|
| ClearDamagedRects();
|
| if (!delegate_)
|
| return;
|
| + // TODO(danakj): Save the invalidation on the layer and pass that down
|
| + // instead of the |clip| here. That will break everything until View
|
| + // early-outs emit cached display items instead of nothing.
|
| + gfx::Rect invalidation = clip;
|
| + DCHECK(clip.Contains(invalidation));
|
| delegate_->OnPaintLayer(
|
| PaintContext(display_list, device_scale_factor_, clip, invalidation));
|
| }
|
|
|