Skip to content

Commit 2d1ee0c

Browse files
Marzia FavaroAndroid (Google) Code Review
authored andcommitted
Merge "Remove com.android.graphics.libgui.flags.Flags.edgeExtensionShader" into main
2 parents 5fbf86b + 74f7ca0 commit 2d1ee0c

6 files changed

Lines changed: 1 addition & 37 deletions

File tree

libs/gui/SurfaceComposerClient.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2364,10 +2364,6 @@ SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setStret
23642364
return *this;
23652365
}
23662366

2367-
bool SurfaceComposerClient::flagEdgeExtensionEffectUseShader() {
2368-
return com::android::graphics::libgui::flags::edge_extension_shader();
2369-
}
2370-
23712367
SurfaceComposerClient::Transaction& SurfaceComposerClient::Transaction::setEdgeExtensionEffect(
23722368
const sp<SurfaceControl>& sc, const gui::EdgeExtensionParameters& effect) {
23732369
layer_state_t* s = getLayerState(sc);

libs/gui/include/gui/SurfaceComposerClient.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,6 @@ class SurfaceComposerClient : public RefBase
345345
static std::optional<aidl::android::hardware::graphics::common::DisplayDecorationSupport>
346346
getDisplayDecorationSupport(const sp<IBinder>& displayToken);
347347

348-
static bool flagEdgeExtensionEffectUseShader();
349-
350348
/**
351349
* Returns how many picture profiles are supported by the display.
352350
*

libs/gui/libgui_flags.aconfig

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,6 @@ flag {
7676
is_fixed_read_only: true
7777
} # wb_stream_splitter
7878

79-
flag {
80-
name: "edge_extension_shader"
81-
namespace: "windowing_frontend"
82-
description: "Enable edge extension via shader"
83-
bug: "322036393"
84-
is_fixed_read_only: true
85-
} # edge_extension_shader
86-
8779
flag {
8880
name: "buffer_release_channel"
8981
namespace: "window_surfaces"

libs/renderengine/skia/Cache.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,7 @@ void Cache::primeShaderCache(SkiaRenderEngine* renderengine, PrimeCacheConfig co
803803
drawClippedLayers(renderengine, display, dstTexture, texture);
804804
}
805805

806-
if (com::android::graphics::libgui::flags::edge_extension_shader() &&
807-
config.cacheEdgeExtension) {
806+
if (config.cacheEdgeExtension) {
808807
SFTRACE_NAME("cacheEdgeExtension");
809808
drawEdgeExtensionLayers(renderengine, display, dstTexture, texture);
810809
drawEdgeExtensionLayers(renderengine, p3Display, dstTexture, texture);

libs/renderengine/skia/filters/EdgeExtensionShaderFactory.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ static const SkString edgeShader = SkString(R"(
5858
)");
5959

6060
EdgeExtensionShaderFactory::EdgeExtensionShaderFactory() {
61-
if (!com::android::graphics::libgui::flags::edge_extension_shader()) {
62-
return;
63-
}
6461
mResult = std::make_unique<SkRuntimeEffect::Result>(SkRuntimeEffect::MakeForShader(edgeShader));
6562
LOG_ALWAYS_FATAL_IF(!mResult->errorText.isEmpty(),
6663
"EdgeExtensionShaderFactory compilation "

services/surfaceflinger/tests/unittests/LayerSnapshotTest.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1879,9 +1879,6 @@ TEST_F(LayerSnapshotTest, hideLayerWithNanMatrix) {
18791879
}
18801880

18811881
TEST_F(LayerSnapshotTest, edgeExtensionPropagatesInHierarchy) {
1882-
if (!com::android::graphics::libgui::flags::edge_extension_shader()) {
1883-
GTEST_SKIP() << "Skipping test because edge_extension_shader is off";
1884-
}
18851882
setCrop(1, Rect(0, 0, 20, 20));
18861883
setBuffer(1221,
18871884
std::make_shared<renderengine::mock::FakeExternalTexture>(20 /* width */,
@@ -1920,9 +1917,6 @@ TEST_F(LayerSnapshotTest, edgeExtensionPropagatesInHierarchy) {
19201917

19211918
TEST_F(LayerSnapshotTest, leftEdgeExtensionIncreaseBoundSizeWithinCrop) {
19221919
// The left bound is extended when shifting to the right
1923-
if (!com::android::graphics::libgui::flags::edge_extension_shader()) {
1924-
GTEST_SKIP() << "Skipping test because edge_extension_shader is off";
1925-
}
19261920
setCrop(1, Rect(0, 0, 20, 20));
19271921
const int texSize = 10;
19281922
setBuffer(1221,
@@ -1942,9 +1936,6 @@ TEST_F(LayerSnapshotTest, leftEdgeExtensionIncreaseBoundSizeWithinCrop) {
19421936

19431937
TEST_F(LayerSnapshotTest, rightEdgeExtensionIncreaseBoundSizeWithinCrop) {
19441938
// The right bound is extended when shifting to the left
1945-
if (!com::android::graphics::libgui::flags::edge_extension_shader()) {
1946-
GTEST_SKIP() << "Skipping test because edge_extension_shader is off";
1947-
}
19481939
const int crop = 20;
19491940
setCrop(1, Rect(0, 0, crop, crop));
19501941
const int texSize = 10;
@@ -1965,9 +1956,6 @@ TEST_F(LayerSnapshotTest, rightEdgeExtensionIncreaseBoundSizeWithinCrop) {
19651956

19661957
TEST_F(LayerSnapshotTest, topEdgeExtensionIncreaseBoundSizeWithinCrop) {
19671958
// The top bound is extended when shifting to the bottom
1968-
if (!com::android::graphics::libgui::flags::edge_extension_shader()) {
1969-
GTEST_SKIP() << "Skipping test because edge_extension_shader is off";
1970-
}
19711959
setCrop(1, Rect(0, 0, 20, 20));
19721960
const int texSize = 10;
19731961
setBuffer(1221,
@@ -1987,9 +1975,6 @@ TEST_F(LayerSnapshotTest, topEdgeExtensionIncreaseBoundSizeWithinCrop) {
19871975

19881976
TEST_F(LayerSnapshotTest, bottomEdgeExtensionIncreaseBoundSizeWithinCrop) {
19891977
// The bottom bound is extended when shifting to the top
1990-
if (!com::android::graphics::libgui::flags::edge_extension_shader()) {
1991-
GTEST_SKIP() << "Skipping test because edge_extension_shader is off";
1992-
}
19931978
const int crop = 20;
19941979
setCrop(1, Rect(0, 0, crop, crop));
19951980
const int texSize = 10;
@@ -2010,9 +1995,6 @@ TEST_F(LayerSnapshotTest, bottomEdgeExtensionIncreaseBoundSizeWithinCrop) {
20101995

20111996
TEST_F(LayerSnapshotTest, multipleEdgeExtensionIncreaseBoundSizeWithinCrop) {
20121997
// The left bound is extended when shifting to the right
2013-
if (!com::android::graphics::libgui::flags::edge_extension_shader()) {
2014-
GTEST_SKIP() << "Skipping test because edge_extension_shader is off";
2015-
}
20161998
const int crop = 20;
20171999
setCrop(1, Rect(0, 0, crop, crop));
20182000
const int texSize = 10;

0 commit comments

Comments
 (0)