commit | 414c8b74369062f475e4dac19acc55f3d15e9435 | [log] [tgz] |
---|---|---|
author | Manuel Rego Casasnovas <rego@igalia.com> | Wed Nov 13 17:07:45 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Nov 13 17:07:45 2019 |
tree | e033f3c0a5ac69e65999e5fbf7c8c66fe60cc323 | |
parent | b047131ba76c64efe80e771372ca6e9503daa05a [diff] |
Split NeedsRepaint in two flags for Self and Descendant This patch separates PaintLayer::NeedsRepaint() into two flags: * PaintLayer::SelfNeedsRepaint() * PaintLayer::DescendantNeedsRepaint() This also introduces a method SelfOrDescendantNeedsRepaint() that is used in the places where we need to check for any of the flags (somehow the equivalent to the previous NeedsRepaint()). This is the initial step to allow optimizations in future patches. Ideally we should be able to avoid repainting a PaintLayer if it only has DescendantNeedsRepaint(). BUG=917911 Change-Id: Ie9d509328515492905d8da3b11d2cbf95da5f7b9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1911792 Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Manuel Rego <rego@igalia.com> Cr-Commit-Position: refs/heads/master@{#714962}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .