Commit 1283215a authored by Philip Rogers's avatar Philip Rogers Committed by Commit Bot

Remove recorded_viewport member variable from picture layer inputs

recorded_viewport is only used as a temporary in PictureLayer::Update.

Change-Id: I60697e3d5e83d9634f09081fddd7fa6093cd328a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1988589
Auto-Submit: Philip Rogers <pdr@chromium.org>
Reviewed-by: default avatarXianzhu Wang <wangxianzhu@chromium.org>
Commit-Queue: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#728595}
parent b57bc0bf
......@@ -128,12 +128,10 @@ bool PictureLayer::Update() {
// for them.
DCHECK(picture_layer_inputs_.client);
picture_layer_inputs_.recorded_viewport =
picture_layer_inputs_.client->PaintableRegion();
auto recorded_viewport = picture_layer_inputs_.client->PaintableRegion();
updated |= recording_source_->UpdateAndExpandInvalidation(
&last_updated_invalidation_, layer_size,
picture_layer_inputs_.recorded_viewport);
&last_updated_invalidation_, layer_size, recorded_viewport);
if (updated) {
picture_layer_inputs_.display_list =
......@@ -269,7 +267,6 @@ void PictureLayer::DropRecordingSourceContentIfInvalid() {
// for example), even though it has resized making the recording source no
// longer valid. In this case just destroy the recording source.
recording_source_->SetEmptyBounds();
picture_layer_inputs_.recorded_viewport = gfx::Rect();
picture_layer_inputs_.display_list = nullptr;
picture_layer_inputs_.painter_reported_memory_usage = 0;
}
......
......@@ -71,7 +71,6 @@ class CC_EXPORT PictureLayer : public Layer {
bool nearest_neighbor = false;
bool transformed_rasterization_allowed = false;
bool is_backdrop_filter_mask = false;
gfx::Rect recorded_viewport;
scoped_refptr<DisplayItemList> display_list;
size_t painter_reported_memory_usage = 0;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment