diff options
Diffstat (limited to 'services/surfaceflinger/tests/EffectLayer_test.cpp')
-rw-r--r-- | services/surfaceflinger/tests/EffectLayer_test.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/services/surfaceflinger/tests/EffectLayer_test.cpp b/services/surfaceflinger/tests/EffectLayer_test.cpp index af00ec7fc9..93656f3fd2 100644 --- a/services/surfaceflinger/tests/EffectLayer_test.cpp +++ b/services/surfaceflinger/tests/EffectLayer_test.cpp @@ -176,6 +176,15 @@ TEST_F(EffectLayerTest, BlurEffectLayerIsVisible) { } } +TEST_F(EffectLayerTest, EffectLayerWithColorNoCrop) { + const auto display = SurfaceComposerClient::getInternalDisplayToken(); + ui::DisplayMode mode; + ASSERT_EQ(NO_ERROR, SurfaceComposerClient::getActiveDisplayMode(display, &mode)); + const ui::Size& resolution = mode.resolution; + auto shot = screenshot(); + shot->expectColor(Rect(0, 0, resolution.getWidth(), resolution.getHeight()), Color::RED); +} + } // namespace android // TODO(b/129481165): remove the #pragma below and fix conversion issues |