diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/cc/layers/picture_layer.cc | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/cc/layers/picture_layer.cc')
-rw-r--r-- | chromium/cc/layers/picture_layer.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/chromium/cc/layers/picture_layer.cc b/chromium/cc/layers/picture_layer.cc index b7244152c31..0baee75a961 100644 --- a/chromium/cc/layers/picture_layer.cc +++ b/chromium/cc/layers/picture_layer.cc @@ -137,9 +137,17 @@ bool PictureLayer::Update() { &last_updated_invalidation_, layer_size, recorded_viewport); if (updated) { - picture_layer_inputs_.display_list = - picture_layer_inputs_.client->PaintContentsToDisplayList( - ContentLayerClient::PAINTING_BEHAVIOR_NORMAL); + { + auto old_display_list = std::move(picture_layer_inputs_.display_list); + picture_layer_inputs_.display_list = + picture_layer_inputs_.client->PaintContentsToDisplayList( + ContentLayerClient::PAINTING_BEHAVIOR_NORMAL); + if (old_display_list && + picture_layer_inputs_.display_list + ->NeedsAdditionalInvalidationForLCDText(*old_display_list)) { + last_updated_invalidation_ = gfx::Rect(bounds()); + } + } // Clear out previous directly composited image state - if the layer // qualifies we'll set up the state below. @@ -282,14 +290,6 @@ bool PictureLayer::ShouldUseTransformedRasterization() const { if (!picture_layer_inputs_.transformed_rasterization_allowed) return false; - // Background color overfill is undesirable with transformed rasterization. - // However, without background overfill, the tiles will be non-opaque on - // external edges, and layer opaque region can't be computed in layer space - // due to rounding under extreme scaling. This defeats many opaque layer - // optimization. Prefer optimization over quality for this particular case. - if (contents_opaque()) - return false; - const TransformTree& transform_tree = layer_tree_host()->property_trees()->transform_tree; DCHECK(!transform_tree.needs_update()); |