From 16dd6e3e6f6500fe74ef27b8430c717ed5e7e9d8 Mon Sep 17 00:00:00 2001 From: Cairn Overturf Date: Wed, 22 Jan 2025 13:31:07 -0800 Subject: Remove client drawn shadow code Shadows will continue to be drawn by surfaceflinger Bug: 391428079, 375624570 Change-Id: Ic527a091e77d69c6e9529782d283379a2651dea8 Test: Shadows work in free form mode Flag: com.android.window.flags.ignore_corner_radius_and_shadows --- libs/gui/SurfaceComposerClient.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'libs/gui/SurfaceComposerClient.cpp') diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index 852885be61..384cdbf410 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -1688,17 +1688,6 @@ SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setClien return *this; } -SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setClientDrawnShadowRadius( - const sp& sc, float clientDrawnShadowRadius) { - layer_state_t* s = getLayerState(sc); - if (!s) { - mStatus = BAD_INDEX; - return *this; - } - s->what |= layer_state_t::eClientDrawnShadowsChanged; - s->clientDrawnShadowRadius = clientDrawnShadowRadius; - return *this; -} SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setBackgroundBlurRadius( const sp& sc, int backgroundBlurRadius) { layer_state_t* s = getLayerState(sc); -- cgit v1.2.3-59-g8ed1b