| Index: ui/compositor/paint_cache.cc
|
| diff --git a/ui/compositor/paint_cache.cc b/ui/compositor/paint_cache.cc
|
| index ca80aa3940c6b589c85f9236070fe97d334ab304..b4db1ab3b4cd7fd41d892570901d4b5d2e8e0bec 100644
|
| --- a/ui/compositor/paint_cache.cc
|
| +++ b/ui/compositor/paint_cache.cc
|
| @@ -15,11 +15,14 @@ PaintCache::PaintCache() : has_cache_(false) {
|
| PaintCache::~PaintCache() {
|
| }
|
|
|
| -bool PaintCache::UseCache(const PaintContext& context) {
|
| +bool PaintCache::UseCache(const PaintContext& context,
|
| + const gfx::Size& size_in_layer) {
|
| if (!has_cache_)
|
| return false;
|
| DCHECK(context.list_);
|
| - auto* item = context.list_->CreateAndAppendItem<cc::DrawingDisplayItem>();
|
| + gfx::Rect bounds_in_layer = context.ToLayerSpaceBounds(size_in_layer);
|
| + auto* item = context.list_->CreateAndAppendItem<cc::DrawingDisplayItem>(
|
| + bounds_in_layer);
|
| display_item_.CloneTo(item);
|
| return true;
|
| }
|
|
|