[CI] Remove client, location and size parameters of ForeignLayerDisplayItem
ForeignLayerDisplayItem's location and size should always equal to the cc layer's offset_to_transform_parent and bounds, respectively. Removing them can simplify logic and reduce duplicated data. Let ForeignLayerDisplayItem create its client by itself. The client returns VisualRect based on the geometry of the cc layer. Let ForeignLayerDisplayItem::DrawsContent() return false because it doesn't issue paint operations. This enables us not to repaint a foreign layer display item when the cc layer changes geometry, though this is not the case for now because we need to update the geometry of the cc layers during paint. However, with the duplicated data removed, we can decouple cc layer geometry update from paint if needed. Change-Id: Idac393608467933bf1eda3691aa4f4cd6379f27e Reviewed-on: https://chromium-review.googlesource.com/c/1352971 Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by:Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#612010}
Showing
Please register or sign in to comment