| Index: ui/compositor/paint_cache.cc
|
| diff --git a/ui/compositor/paint_cache.cc b/ui/compositor/paint_cache.cc
|
| index ca80aa3940c6b589c85f9236070fe97d334ab304..0b7f948b4590d45512cb0eaeff7e9f9242ba5e11 100644
|
| --- a/ui/compositor/paint_cache.cc
|
| +++ b/ui/compositor/paint_cache.cc
|
| @@ -19,12 +19,15 @@ bool PaintCache::UseCache(const PaintContext& context) {
|
| if (!has_cache_)
|
| return false;
|
| DCHECK(context.list_);
|
| - auto* item = context.list_->CreateAndAppendItem<cc::DrawingDisplayItem>();
|
| + auto* item =
|
| + context.list_->CreateAndAppendItem<cc::DrawingDisplayItem>(layer_bounds_);
|
| display_item_.CloneTo(item);
|
| return true;
|
| }
|
|
|
| -void PaintCache::SetCache(const cc::DrawingDisplayItem* item) {
|
| +void PaintCache::SetCache(const gfx::Rect& layer_bounds,
|
| + const cc::DrawingDisplayItem* item) {
|
| + layer_bounds_ = layer_bounds;
|
| item->CloneTo(&display_item_);
|
| has_cache_ = true;
|
| }
|
|
|