| Index: ui/compositor/paint_cache.cc
|
| diff --git a/ui/compositor/paint_cache.cc b/ui/compositor/paint_cache.cc
|
| index ca80aa3940c6b589c85f9236070fe97d334ab304..b0997da02ec6f8b09bf24c6b8e91d2ae1a97e4c7 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>(visual_rect_);
|
| display_item_.CloneTo(item);
|
| return true;
|
| }
|
|
|
| -void PaintCache::SetCache(const cc::DrawingDisplayItem* item) {
|
| +void PaintCache::SetCache(const gfx::Rect& visual_rect,
|
| + const cc::DrawingDisplayItem* item) {
|
| + visual_rect_ = visual_rect;
|
| item->CloneTo(&display_item_);
|
| has_cache_ = true;
|
| }
|
|
|