Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1039)

Unified Diff: third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp

Issue 2894093002: Don't access DisplayItemClient::VisualRect() for cached display items. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp b/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp
index 65aca21855cf57ef77f0deb8a28a7a81dd7de2a6..05702a7d4cf8766d6537cfb8282c3a5d64153d0a 100644
--- a/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp
@@ -90,6 +90,7 @@ void ContentLayerDelegate::PaintContents(
graphics_layer_->Paint(nullptr, disabled_mode);
paint_controller.GetPaintArtifact().AppendToWebDisplayItemList(
+ graphics_layer_->OffsetFromLayoutObjectWithSubpixelAccumulation(),
wkorman 2017/05/19 00:55:08 Does this add some small overhead vs. ToT, as (I t
Xianzhu 2017/05/19 01:25:11 Good catch. The overhead happens when the Graphic
web_display_item_list);
paint_controller.SetDisplayItemConstructionIsDisabled(false);

Powered by Google App Engine
This is Rietveld 408576698