diff options
| author | 2018-11-30 02:05:18 +0000 | |
|---|---|---|
| committer | 2018-11-30 02:05:18 +0000 | |
| commit | 75cc36e4924601444c75b24a59fac117ead00ee2 (patch) | |
| tree | ae30440a4fae2b0c23896d60cfa922263daaab04 | |
| parent | bd63715a39f577107a23d9068d6b71a3ea0e1c62 (diff) | |
| parent | 3043ca8a3c68facd3bee63a95874fe60340e9b77 (diff) | |
Merge "SF: Set crop for color layer in ChildColorLayerTest"
| -rw-r--r-- | services/surfaceflinger/tests/fakehwc/SFFakeHwc_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/surfaceflinger/tests/fakehwc/SFFakeHwc_test.cpp b/services/surfaceflinger/tests/fakehwc/SFFakeHwc_test.cpp index 356a880b6e..16e08918a0 100644 --- a/services/surfaceflinger/tests/fakehwc/SFFakeHwc_test.cpp +++ b/services/surfaceflinger/tests/fakehwc/SFFakeHwc_test.cpp @@ -1214,7 +1214,7 @@ class ChildColorLayerTest : public ChildLayerTest { protected: void SetUp() override { TransactionTest::SetUp(); - mChild = mComposerClient->createSurface(String8("Child surface"), 10, 10, + mChild = mComposerClient->createSurface(String8("Child surface"), 0, 0, PIXEL_FORMAT_RGBA_8888, ISurfaceComposerClient::eFXSurfaceColor, mFGSurfaceControl.get()); @@ -1222,6 +1222,7 @@ protected: TransactionScope ts(*sFakeComposer); ts.setColor(mChild, {LIGHT_GRAY.r / 255.0f, LIGHT_GRAY.g / 255.0f, LIGHT_GRAY.b / 255.0f}); + ts.setCrop_legacy(mChild, Rect(0, 0, 10, 10)); } sFakeComposer->runVSyncAndWait(); |