On cc::Layer there are different calls that gets triggered by property change, and sometimes confusing to which one should be called.
Currently there are:
SetNeedsUpdateLayer
SetNeedsCommit (w/ and w/o rebuilding tree, and full tree sync)
SetNeedsPushProperties
NeedsUpdateLayer leads to potential commit, and should live on LayerTreeHost instead of Layer.
NeedsPushProperties should lead to a commit, unless it is called inside a commit.
So step forward:
- Remove SetNeedsUpdateLayer
- Merge SetNeedsPushProperties and SetNeedsCommit use cases.
Comment 1 by ajuma@chromium.org
, Feb 24 2017