| Index: ui/compositor/paint_recorder.cc
|
| diff --git a/ui/compositor/paint_recorder.cc b/ui/compositor/paint_recorder.cc
|
| index f93d700b37e487a8f3491f3dcd570e3c09b97648..97d2b5c42ad183c26d33132d46d69fb63a8fe1d2 100644
|
| --- a/ui/compositor/paint_recorder.cc
|
| +++ b/ui/compositor/paint_recorder.cc
|
| @@ -25,7 +25,7 @@ PaintRecorder::PaintRecorder(const PaintContext& context,
|
| gfx::RectToSkRect(gfx::Rect(recording_size))),
|
| context.device_scale_factor_),
|
| cache_(cache),
|
| - bounds_in_layer_(context.ToLayerSpaceBounds(recording_size)) {
|
| + recording_size_(recording_size) {
|
| #if DCHECK_IS_ON()
|
| DCHECK(!context.inside_paint_recorder_);
|
| context.inside_paint_recorder_ = true;
|
| @@ -41,9 +41,11 @@ PaintRecorder::~PaintRecorder() {
|
| #if DCHECK_IS_ON()
|
| context_.inside_paint_recorder_ = false;
|
| #endif
|
| + gfx::Rect bounds_in_layer = context_.ToLayerSpaceBounds(recording_size_);
|
| const auto& item =
|
| context_.list_->CreateAndAppendDrawingItem<cc::DrawingDisplayItem>(
|
| - bounds_in_layer_, context_.recorder_->finishRecordingAsPicture());
|
| + bounds_in_layer, context_.recorder_->finishRecordingAsPicture(),
|
| + gfx::RectToSkRect(gfx::Rect(recording_size_)));
|
| if (cache_)
|
| cache_->SetCache(item);
|
| }
|
|
|