From 0f50e9fb51bdbdd02a3c65fda8a66be4a57665d1 Mon Sep 17 00:00:00 2001 From: chaviw Date: Thu, 11 Feb 2021 10:01:54 -0800 Subject: [PATCH] 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 Bug: 170765639 Change-Id: I945aec7a85932e494516a9f32abb56d07ef37ef3 --- core/jni/android_view_SurfaceControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/jni/android_view_SurfaceControl.cpp b/core/jni/android_view_SurfaceControl.cpp index cbf4481bd2f1d..31cc77f74c440 100644 --- a/core/jni/android_view_SurfaceControl.cpp +++ b/core/jni/android_view_SurfaceControl.cpp @@ -746,7 +746,7 @@ static void nativeSetWindowCrop(JNIEnv* env, jclass clazz, jlong transactionObj, SurfaceControl* const ctrl = reinterpret_cast(nativeObject); Rect crop(l, t, r, b); - transaction->setCrop_legacy(ctrl, crop); + transaction->setCrop(ctrl, crop); } static void nativeSetCornerRadius(JNIEnv* env, jclass clazz, jlong transactionObj,