summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorlumark <lumark@google.com>2019-10-17 18:35:22 +0800
committerlumark <lumark@google.com>2019-10-30 23:27:55 +0800
commit9bca6b43c541e4a5925f7cc261863656c5cfe573 (patch)
treeb42b8b745886b1a882f57454aac0f43a243810b5 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parentd6e55406ffeed0bf3742d547f0358606ad52e6b2 (diff)
Unify animation methods into new WindowContainer#isAnimating()
In previous design, WindowContainer defined 3 types of checking animating methods: - isSelfAnimating: check if container its self is animating. - isAnimating: check if container its self or its parent is animating. - isSelfOrChildAnimating: check if container its self or its child is animating. But in ActivityRecord overrides isSelfAnimating to check if container is waiting for App transition start or container its self animating. Moreover, in ActivityRecord added isReallyAnimating method but it actually called WC#isSelfAnimating, which is a bit weird and affect readibility. As above mentioned, overrides isSelfAnimating will change the original method definition behavior, like when WindowState calling isAnimating will also check if the parent is waiting for app transition. Or, when the container which is upper than ActivityRecord calling isSelfOrChildAnimating, will Also need to check if child is waiting for app transition. To disambiguate the method behavior, we unified animation methods into new WindowContainer#isAnimating method, and defined TRANSITION / PARENTS / CHILDREN checking scenarios, so the new method mapping will be: - isSelfAnimating (from ActivityRecord) -> isAnimating(TRANSITION) - isSelfAnimating (from WindowState) or isReallyAnimating -> WC#isAnimating(0) - isAnimating -> isAnimating(TRANSITION | PARENTS) - isSelfOrChildAnimating -> isAnimating(TRANSITION | CHILDREN) Bug: 142617871 Bug: 131661052 Test: all existing tests passed Change-Id: I3f8719c7d9f4607d03a6ea672a5fbfdcdfb0d967
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions