| Index: ui/compositor/clip_recorder.cc
|
| diff --git a/ui/compositor/clip_recorder.cc b/ui/compositor/clip_recorder.cc
|
| index 164bd799b234d674506c24303d23af7c27fd46da..cec5c3d9f88140d0c7b970a0d0323161dd2f6cd3 100644
|
| --- a/ui/compositor/clip_recorder.cc
|
| +++ b/ui/compositor/clip_recorder.cc
|
| @@ -48,8 +48,9 @@
|
|
|
| void ClipRecorder::ClipRect(const gfx::Rect& clip_rect) {
|
| gfx::Rect clip_in_layer_space = context_.ToLayerSpaceRect(clip_rect);
|
| - context_.list_->CreateAndAppendItem<cc::ClipDisplayItem>(
|
| - clip_in_layer_space, clip_rect, std::vector<SkRRect>());
|
| + auto* item = context_.list_->CreateAndAppendItem<cc::ClipDisplayItem>(
|
| + clip_in_layer_space);
|
| + item->SetNew(clip_rect, std::vector<SkRRect>());
|
| RecordCloser(clip_in_layer_space, CLIP_RECT);
|
| }
|
|
|
| @@ -57,8 +58,9 @@
|
| bool anti_alias = false;
|
| gfx::Rect clip_in_layer_space =
|
| context_.ToLayerSpaceRect(PathToEnclosingRect(clip_path));
|
| - context_.list_->CreateAndAppendItem<cc::ClipPathDisplayItem>(
|
| - clip_in_layer_space, clip_path, SkRegion::kIntersect_Op, anti_alias);
|
| + auto* item = context_.list_->CreateAndAppendItem<cc::ClipPathDisplayItem>(
|
| + clip_in_layer_space);
|
| + item->SetNew(clip_path, SkRegion::kIntersect_Op, anti_alias);
|
| RecordCloser(clip_in_layer_space, CLIP_PATH);
|
| }
|
|
|
| @@ -66,8 +68,9 @@
|
| bool anti_alias = true;
|
| gfx::Rect clip_in_layer_space =
|
| context_.ToLayerSpaceRect(PathToEnclosingRect(clip_path));
|
| - context_.list_->CreateAndAppendItem<cc::ClipPathDisplayItem>(
|
| - clip_in_layer_space, clip_path, SkRegion::kIntersect_Op, anti_alias);
|
| + auto* item = context_.list_->CreateAndAppendItem<cc::ClipPathDisplayItem>(
|
| + clip_in_layer_space);
|
| + item->SetNew(clip_path, SkRegion::kIntersect_Op, anti_alias);
|
| RecordCloser(clip_in_layer_space, CLIP_PATH);
|
| }
|
|
|
|
|