summaryrefslogtreecommitdiff
path: root/libs/hwui/tests/common/scenes/MagnifierAnimation.cpp
diff options
context:
space:
mode:
authorLeon Scroggins III <scroggo@google.com>2020-05-05 15:53:29 -0400
committerLeon Scroggins III <scroggo@google.com>2020-05-06 09:38:39 -0400
commit0f53e10c07ddfb0a95a8ef13d4f5ec91606dd5ed (patch)
tree758b9077801de5cd744e9bdd7031245b1757daf9 /libs/hwui/tests/common/scenes/MagnifierAnimation.cpp
parentc8d49effd583b1c6b052c39e52d71d226c029dd0 (diff)
Switch Java calls to enableZ and disableZ; remove isRecordingFor
Bug: 155422223 Test: make insertInOrderBarrier and insertReorderBarrier are @hide and deprecated. Remove them and update all callers to enableZ and disableZ, which are already public. Update native code to refer to enableZ instead of insertReorderBarrier. In addition, remove @hide Canvas#isRecordingFor. This method was originally used to prevent a single RenderNode from being in two display lists. This is now supported, so there's no reason to avoid it. The one caller used it to determine whether to reorder drawing its child Views (which, as the comment says, makes sense to determine based on whether the Canvas isHardwareAccelerated) and whether to call insertReorderBarrier/insertInOrderBarrier (now enableZ/disableZ). In the latter case, there is no need for a conditional, since enableZ/disableZ only work on a hardware Canvas. Change-Id: Ib216a19d6aeff40b2e23532bacd62d1795c2ab27
Diffstat (limited to 'libs/hwui/tests/common/scenes/MagnifierAnimation.cpp')
-rw-r--r--libs/hwui/tests/common/scenes/MagnifierAnimation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/tests/common/scenes/MagnifierAnimation.cpp b/libs/hwui/tests/common/scenes/MagnifierAnimation.cpp
index f4fce277454d..edadf78db051 100644
--- a/libs/hwui/tests/common/scenes/MagnifierAnimation.cpp
+++ b/libs/hwui/tests/common/scenes/MagnifierAnimation.cpp
@@ -56,9 +56,9 @@ public:
(float)magnifier->height(), 0, 0, (float)props.getWidth(),
(float)props.getHeight(), nullptr);
});
- canvas.insertReorderBarrier(true);
+ canvas.enableZ(true);
canvas.drawRenderNode(zoomImageView.get());
- canvas.insertReorderBarrier(false);
+ canvas.enableZ(false);
}
void doFrame(int frameNr) override {