| Index: ui/compositor/paint_recorder.cc
|
| diff --git a/ui/compositor/paint_recorder.cc b/ui/compositor/paint_recorder.cc
|
| index 45b6f35efdc0a81413e8edd52bc48572dd61ac70..b3d497b2fa361c60ca7542199011b22aff549ca4 100644
|
| --- a/ui/compositor/paint_recorder.cc
|
| +++ b/ui/compositor/paint_recorder.cc
|
| @@ -24,7 +24,8 @@ PaintRecorder::PaintRecorder(const PaintContext& context,
|
| gfx::RectToSkRect(gfx::Rect(recording_size))))
|
| .get(),
|
| context.device_scale_factor_),
|
| - cache_(cache) {
|
| + cache_(cache),
|
| + bounds_in_layer_(context.ToLayerSpaceBounds(recording_size)) {
|
| #if DCHECK_IS_ON()
|
| DCHECK(!context.inside_paint_recorder_);
|
| context.inside_paint_recorder_ = true;
|
| @@ -41,7 +42,8 @@ PaintRecorder::~PaintRecorder() {
|
| context_.inside_paint_recorder_ = false;
|
| #endif
|
|
|
| - auto* item = context_.list_->CreateAndAppendItem<cc::DrawingDisplayItem>();
|
| + auto* item = context_.list_->CreateAndAppendItem<cc::DrawingDisplayItem>(
|
| + bounds_in_layer_);
|
| item->SetNew(skia::AdoptRef(context_.recorder_->endRecordingAsPicture()));
|
| if (cache_)
|
| cache_->SetCache(item);
|
|
|