diff options
author | chaviw <chaviw@google.com> | 2021-02-11 10:01:08 -0800 |
---|---|---|
committer | chaviw <chaviw@google.com> | 2021-03-15 10:49:31 -0500 |
commit | 25714500c80a7c4efa5cd82ccd914a57bc5d51e6 (patch) | |
tree | c3dd39356b17acb77c166c943478118033f3d30d /libs/gui/tests/EndToEndNativeInputTest.cpp | |
parent | f5b97a8b0e0cb0e688905a5398f12949c836a190 (diff) |
Rename crop_legacy to just crop
crop_legacy and crop should do the same thing so there's no need for two
separate requests.
Test: go/wm-smoke
Test: SurfaceFlinger_test
Bug: 170765639
Change-Id: I74a740d06d15f7cde9775557e65ad1e3a508bd61
Diffstat (limited to 'libs/gui/tests/EndToEndNativeInputTest.cpp')
-rw-r--r-- | libs/gui/tests/EndToEndNativeInputTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/gui/tests/EndToEndNativeInputTest.cpp b/libs/gui/tests/EndToEndNativeInputTest.cpp index d65a40baf6..59e5c13b0b 100644 --- a/libs/gui/tests/EndToEndNativeInputTest.cpp +++ b/libs/gui/tests/EndToEndNativeInputTest.cpp @@ -195,7 +195,7 @@ public: t.setInputWindowInfo(mSurfaceControl, mInputInfo); t.setLayer(mSurfaceControl, LAYER_BASE); t.setPosition(mSurfaceControl, x, y); - t.setCrop_legacy(mSurfaceControl, crop); + t.setCrop(mSurfaceControl, crop); t.setAlpha(mSurfaceControl, 1); t.apply(true); } @@ -670,7 +670,7 @@ TEST_F(InputSurfacesTest, touch_flag_partially_obscured_with_crop) { parentSurface->showAt(100, 100); nonTouchableSurface->doTransaction([&](auto &t, auto &sc) { - t.setCrop_legacy(parentSurface->mSurfaceControl, Rect(0, 0, 50, 50)); + t.setCrop(parentSurface->mSurfaceControl, Rect(0, 0, 50, 50)); t.reparent(sc, parentSurface->mSurfaceControl); }); @@ -694,7 +694,7 @@ TEST_F(InputSurfacesTest, touch_not_obscured_with_crop) { parentSurface->showAt(50, 50); nonTouchableSurface->doTransaction([&](auto &t, auto &sc) { - t.setCrop_legacy(parentSurface->mSurfaceControl, Rect(0, 0, 50, 50)); + t.setCrop(parentSurface->mSurfaceControl, Rect(0, 0, 50, 50)); t.reparent(sc, parentSurface->mSurfaceControl); }); |