Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Lloyd Pique | ab039b5 | 2019-02-13 14:22:42 -0800 | [diff] [blame] | 17 | #include <compositionengine/CompositionRefreshArgs.h> |
Lloyd Pique | aed56ab | 2019-11-13 22:34:11 -0800 | [diff] [blame] | 18 | #include <compositionengine/LayerFECompositionState.h> |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 19 | #include <compositionengine/impl/CompositionEngine.h> |
Lloyd Pique | ab039b5 | 2019-02-13 14:22:42 -0800 | [diff] [blame] | 20 | #include <compositionengine/mock/LayerFE.h> |
| 21 | #include <compositionengine/mock/Output.h> |
Lloyd Pique | aed56ab | 2019-11-13 22:34:11 -0800 | [diff] [blame] | 22 | #include <compositionengine/mock/OutputLayer.h> |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 23 | #include <gtest/gtest.h> |
Lloyd Pique | b97e04f | 2018-10-18 17:07:05 -0700 | [diff] [blame] | 24 | #include <renderengine/mock/RenderEngine.h> |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 25 | |
Lloyd Pique | 441d504 | 2018-10-18 16:49:51 -0700 | [diff] [blame] | 26 | #include "MockHWComposer.h" |
Alec Mouri | e4034bb | 2019-11-19 12:45:54 -0800 | [diff] [blame] | 27 | #include "TimeStats/TimeStats.h" |
Lloyd Pique | 441d504 | 2018-10-18 16:49:51 -0700 | [diff] [blame] | 28 | |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 29 | namespace android::compositionengine { |
| 30 | namespace { |
| 31 | |
Lloyd Pique | ab039b5 | 2019-02-13 14:22:42 -0800 | [diff] [blame] | 32 | using ::testing::_; |
Haibo Huang | f66b752 | 2020-09-10 18:20:30 -0700 | [diff] [blame^] | 33 | using ::testing::DoAll; |
Lloyd Pique | e82ed2d | 2019-11-13 19:28:12 -0800 | [diff] [blame] | 34 | using ::testing::InSequence; |
| 35 | using ::testing::Ref; |
Lloyd Pique | ab039b5 | 2019-02-13 14:22:42 -0800 | [diff] [blame] | 36 | using ::testing::Return; |
Lloyd Pique | aed56ab | 2019-11-13 22:34:11 -0800 | [diff] [blame] | 37 | using ::testing::ReturnRef; |
Lloyd Pique | ab039b5 | 2019-02-13 14:22:42 -0800 | [diff] [blame] | 38 | using ::testing::SaveArg; |
Lloyd Pique | 441d504 | 2018-10-18 16:49:51 -0700 | [diff] [blame] | 39 | using ::testing::StrictMock; |
| 40 | |
Lloyd Pique | e82ed2d | 2019-11-13 19:28:12 -0800 | [diff] [blame] | 41 | struct CompositionEngineTest : public testing::Test { |
Lloyd Pique | ab039b5 | 2019-02-13 14:22:42 -0800 | [diff] [blame] | 42 | android::mock::HWComposer* mHwc = new StrictMock<android::mock::HWComposer>(); |
Lloyd Pique | b97e04f | 2018-10-18 17:07:05 -0700 | [diff] [blame] | 43 | renderengine::mock::RenderEngine* mRenderEngine = |
| 44 | new StrictMock<renderengine::mock::RenderEngine>(); |
Alec Mouri | e4034bb | 2019-11-19 12:45:54 -0800 | [diff] [blame] | 45 | std::shared_ptr<TimeStats> mTimeStats; |
| 46 | |
Lloyd Pique | 441d504 | 2018-10-18 16:49:51 -0700 | [diff] [blame] | 47 | impl::CompositionEngine mEngine; |
Lloyd Pique | e82ed2d | 2019-11-13 19:28:12 -0800 | [diff] [blame] | 48 | CompositionRefreshArgs mRefreshArgs; |
| 49 | |
| 50 | std::shared_ptr<mock::Output> mOutput1{std::make_shared<StrictMock<mock::Output>>()}; |
| 51 | std::shared_ptr<mock::Output> mOutput2{std::make_shared<StrictMock<mock::Output>>()}; |
| 52 | std::shared_ptr<mock::Output> mOutput3{std::make_shared<StrictMock<mock::Output>>()}; |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 53 | }; |
| 54 | |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 55 | TEST_F(CompositionEngineTest, canInstantiateCompositionEngine) { |
| 56 | auto engine = impl::createCompositionEngine(); |
| 57 | EXPECT_TRUE(engine.get() != nullptr); |
| 58 | } |
| 59 | |
Lloyd Pique | 441d504 | 2018-10-18 16:49:51 -0700 | [diff] [blame] | 60 | TEST_F(CompositionEngineTest, canSetHWComposer) { |
| 61 | mEngine.setHwComposer(std::unique_ptr<android::HWComposer>(mHwc)); |
| 62 | |
| 63 | EXPECT_EQ(mHwc, &mEngine.getHwComposer()); |
| 64 | } |
| 65 | |
Lloyd Pique | b97e04f | 2018-10-18 17:07:05 -0700 | [diff] [blame] | 66 | TEST_F(CompositionEngineTest, canSetRenderEngine) { |
| 67 | mEngine.setRenderEngine(std::unique_ptr<renderengine::RenderEngine>(mRenderEngine)); |
| 68 | |
| 69 | EXPECT_EQ(mRenderEngine, &mEngine.getRenderEngine()); |
| 70 | } |
| 71 | |
Alec Mouri | e4034bb | 2019-11-19 12:45:54 -0800 | [diff] [blame] | 72 | TEST_F(CompositionEngineTest, canSetTimeStats) { |
| 73 | mEngine.setTimeStats(mTimeStats); |
| 74 | |
| 75 | EXPECT_EQ(mTimeStats.get(), &mEngine.getTimeStats()); |
| 76 | } |
| 77 | |
Lloyd Pique | ab039b5 | 2019-02-13 14:22:42 -0800 | [diff] [blame] | 78 | /* |
Lloyd Pique | e82ed2d | 2019-11-13 19:28:12 -0800 | [diff] [blame] | 79 | * CompositionEngine::present |
| 80 | */ |
| 81 | |
| 82 | struct CompositionEnginePresentTest : public CompositionEngineTest { |
| 83 | struct CompositionEnginePartialMock : public impl::CompositionEngine { |
| 84 | // These are the overridable functions CompositionEngine::present() may |
| 85 | // call, and have separate test coverage. |
| 86 | MOCK_METHOD1(preComposition, void(CompositionRefreshArgs&)); |
| 87 | }; |
| 88 | |
| 89 | StrictMock<CompositionEnginePartialMock> mEngine; |
| 90 | }; |
| 91 | |
| 92 | TEST_F(CompositionEnginePresentTest, worksWithEmptyRequest) { |
| 93 | // present() always calls preComposition() |
| 94 | EXPECT_CALL(mEngine, preComposition(Ref(mRefreshArgs))); |
| 95 | |
| 96 | mEngine.present(mRefreshArgs); |
| 97 | } |
| 98 | |
| 99 | TEST_F(CompositionEnginePresentTest, worksAsExpected) { |
| 100 | // Expect calls to in a certain sequence |
| 101 | InSequence seq; |
| 102 | |
| 103 | // present() always calls preComposition() |
| 104 | EXPECT_CALL(mEngine, preComposition(Ref(mRefreshArgs))); |
| 105 | |
| 106 | // The first step in presenting is to make sure all outputs are prepared. |
| 107 | EXPECT_CALL(*mOutput1, prepare(Ref(mRefreshArgs), _)); |
| 108 | EXPECT_CALL(*mOutput2, prepare(Ref(mRefreshArgs), _)); |
| 109 | EXPECT_CALL(*mOutput3, prepare(Ref(mRefreshArgs), _)); |
| 110 | |
| 111 | // The next step in presenting is to make sure all outputs have the latest |
| 112 | // state from the front-end (SurfaceFlinger). |
| 113 | EXPECT_CALL(*mOutput1, updateLayerStateFromFE(Ref(mRefreshArgs))); |
| 114 | EXPECT_CALL(*mOutput2, updateLayerStateFromFE(Ref(mRefreshArgs))); |
| 115 | EXPECT_CALL(*mOutput3, updateLayerStateFromFE(Ref(mRefreshArgs))); |
| 116 | |
| 117 | // The last step is to actually present each output. |
| 118 | EXPECT_CALL(*mOutput1, present(Ref(mRefreshArgs))); |
| 119 | EXPECT_CALL(*mOutput2, present(Ref(mRefreshArgs))); |
| 120 | EXPECT_CALL(*mOutput3, present(Ref(mRefreshArgs))); |
| 121 | |
| 122 | mRefreshArgs.outputs = {mOutput1, mOutput2, mOutput3}; |
| 123 | mEngine.present(mRefreshArgs); |
| 124 | } |
| 125 | |
| 126 | /* |
Lloyd Pique | aed56ab | 2019-11-13 22:34:11 -0800 | [diff] [blame] | 127 | * CompositionEngine::updateCursorAsync |
| 128 | */ |
| 129 | |
| 130 | struct CompositionEngineUpdateCursorAsyncTest : public CompositionEngineTest { |
| 131 | public: |
Lloyd Pique | de19665 | 2020-01-22 17:29:58 -0800 | [diff] [blame] | 132 | struct Layer { |
| 133 | Layer() { EXPECT_CALL(outputLayer, getLayerFE()).WillRepeatedly(ReturnRef(layerFE)); } |
| 134 | |
| 135 | StrictMock<mock::OutputLayer> outputLayer; |
| 136 | StrictMock<mock::LayerFE> layerFE; |
| 137 | LayerFECompositionState layerFEState; |
| 138 | }; |
| 139 | |
Lloyd Pique | aed56ab | 2019-11-13 22:34:11 -0800 | [diff] [blame] | 140 | CompositionEngineUpdateCursorAsyncTest() { |
Lloyd Pique | 0a45623 | 2020-01-16 17:51:13 -0800 | [diff] [blame] | 141 | EXPECT_CALL(*mOutput1, getOutputLayerCount()).WillRepeatedly(Return(0u)); |
Lloyd Pique | aed56ab | 2019-11-13 22:34:11 -0800 | [diff] [blame] | 142 | EXPECT_CALL(*mOutput1, getOutputLayerOrderedByZByIndex(_)).Times(0); |
| 143 | |
Lloyd Pique | 0a45623 | 2020-01-16 17:51:13 -0800 | [diff] [blame] | 144 | EXPECT_CALL(*mOutput2, getOutputLayerCount()).WillRepeatedly(Return(1u)); |
Lloyd Pique | aed56ab | 2019-11-13 22:34:11 -0800 | [diff] [blame] | 145 | EXPECT_CALL(*mOutput2, getOutputLayerOrderedByZByIndex(0)) |
Lloyd Pique | de19665 | 2020-01-22 17:29:58 -0800 | [diff] [blame] | 146 | .WillRepeatedly(Return(&mOutput2Layer1.outputLayer)); |
Lloyd Pique | aed56ab | 2019-11-13 22:34:11 -0800 | [diff] [blame] | 147 | |
Lloyd Pique | 0a45623 | 2020-01-16 17:51:13 -0800 | [diff] [blame] | 148 | EXPECT_CALL(*mOutput3, getOutputLayerCount()).WillRepeatedly(Return(2u)); |
Lloyd Pique | aed56ab | 2019-11-13 22:34:11 -0800 | [diff] [blame] | 149 | EXPECT_CALL(*mOutput3, getOutputLayerOrderedByZByIndex(0)) |
Lloyd Pique | de19665 | 2020-01-22 17:29:58 -0800 | [diff] [blame] | 150 | .WillRepeatedly(Return(&mOutput3Layer1.outputLayer)); |
Lloyd Pique | aed56ab | 2019-11-13 22:34:11 -0800 | [diff] [blame] | 151 | EXPECT_CALL(*mOutput3, getOutputLayerOrderedByZByIndex(1)) |
Lloyd Pique | de19665 | 2020-01-22 17:29:58 -0800 | [diff] [blame] | 152 | .WillRepeatedly(Return(&mOutput3Layer2.outputLayer)); |
Lloyd Pique | aed56ab | 2019-11-13 22:34:11 -0800 | [diff] [blame] | 153 | } |
| 154 | |
Lloyd Pique | de19665 | 2020-01-22 17:29:58 -0800 | [diff] [blame] | 155 | Layer mOutput2Layer1; |
| 156 | Layer mOutput3Layer1; |
| 157 | Layer mOutput3Layer2; |
Lloyd Pique | aed56ab | 2019-11-13 22:34:11 -0800 | [diff] [blame] | 158 | }; |
| 159 | |
| 160 | TEST_F(CompositionEngineUpdateCursorAsyncTest, handlesNoOutputs) { |
| 161 | mEngine.updateCursorAsync(mRefreshArgs); |
| 162 | } |
| 163 | |
| 164 | TEST_F(CompositionEngineUpdateCursorAsyncTest, handlesNoLayersBeingCursorLayers) { |
Lloyd Pique | de19665 | 2020-01-22 17:29:58 -0800 | [diff] [blame] | 165 | EXPECT_CALL(mOutput3Layer1.outputLayer, isHardwareCursor()).WillRepeatedly(Return(false)); |
| 166 | EXPECT_CALL(mOutput3Layer2.outputLayer, isHardwareCursor()).WillRepeatedly(Return(false)); |
| 167 | EXPECT_CALL(mOutput2Layer1.outputLayer, isHardwareCursor()).WillRepeatedly(Return(false)); |
Lloyd Pique | aed56ab | 2019-11-13 22:34:11 -0800 | [diff] [blame] | 168 | |
| 169 | mRefreshArgs.outputs = {mOutput1, mOutput2, mOutput3}; |
| 170 | |
| 171 | mEngine.updateCursorAsync(mRefreshArgs); |
| 172 | } |
| 173 | |
| 174 | TEST_F(CompositionEngineUpdateCursorAsyncTest, handlesMultipleLayersBeingCursorLayers) { |
| 175 | { |
| 176 | InSequence seq; |
Lloyd Pique | de19665 | 2020-01-22 17:29:58 -0800 | [diff] [blame] | 177 | EXPECT_CALL(mOutput2Layer1.outputLayer, isHardwareCursor()).WillRepeatedly(Return(true)); |
| 178 | EXPECT_CALL(mOutput2Layer1.layerFE, prepareCompositionState(LayerFE::StateSubset::Cursor)); |
| 179 | EXPECT_CALL(mOutput2Layer1.outputLayer, writeCursorPositionToHWC()); |
Lloyd Pique | aed56ab | 2019-11-13 22:34:11 -0800 | [diff] [blame] | 180 | } |
| 181 | |
| 182 | { |
| 183 | InSequence seq; |
Lloyd Pique | de19665 | 2020-01-22 17:29:58 -0800 | [diff] [blame] | 184 | EXPECT_CALL(mOutput3Layer1.outputLayer, isHardwareCursor()).WillRepeatedly(Return(true)); |
| 185 | EXPECT_CALL(mOutput3Layer1.layerFE, prepareCompositionState(LayerFE::StateSubset::Cursor)); |
| 186 | EXPECT_CALL(mOutput3Layer1.outputLayer, writeCursorPositionToHWC()); |
Lloyd Pique | aed56ab | 2019-11-13 22:34:11 -0800 | [diff] [blame] | 187 | } |
| 188 | |
| 189 | { |
| 190 | InSequence seq; |
Lloyd Pique | de19665 | 2020-01-22 17:29:58 -0800 | [diff] [blame] | 191 | EXPECT_CALL(mOutput3Layer2.outputLayer, isHardwareCursor()).WillRepeatedly(Return(true)); |
| 192 | EXPECT_CALL(mOutput3Layer2.layerFE, prepareCompositionState(LayerFE::StateSubset::Cursor)); |
| 193 | EXPECT_CALL(mOutput3Layer2.outputLayer, writeCursorPositionToHWC()); |
Lloyd Pique | aed56ab | 2019-11-13 22:34:11 -0800 | [diff] [blame] | 194 | } |
| 195 | |
| 196 | mRefreshArgs.outputs = {mOutput1, mOutput2, mOutput3}; |
| 197 | |
| 198 | mEngine.updateCursorAsync(mRefreshArgs); |
| 199 | } |
| 200 | |
| 201 | /* |
Lloyd Pique | ab039b5 | 2019-02-13 14:22:42 -0800 | [diff] [blame] | 202 | * CompositionEngine::preComposition |
| 203 | */ |
| 204 | |
Lloyd Pique | e82ed2d | 2019-11-13 19:28:12 -0800 | [diff] [blame] | 205 | struct CompositionTestPreComposition : public CompositionEngineTest { |
Lloyd Pique | ab039b5 | 2019-02-13 14:22:42 -0800 | [diff] [blame] | 206 | sp<StrictMock<mock::LayerFE>> mLayer1FE{new StrictMock<mock::LayerFE>()}; |
| 207 | sp<StrictMock<mock::LayerFE>> mLayer2FE{new StrictMock<mock::LayerFE>()}; |
| 208 | sp<StrictMock<mock::LayerFE>> mLayer3FE{new StrictMock<mock::LayerFE>()}; |
Lloyd Pique | ab039b5 | 2019-02-13 14:22:42 -0800 | [diff] [blame] | 209 | }; |
| 210 | |
Lloyd Pique | e82ed2d | 2019-11-13 19:28:12 -0800 | [diff] [blame] | 211 | TEST_F(CompositionTestPreComposition, preCompositionSetsFrameTimestamp) { |
Lloyd Pique | ab039b5 | 2019-02-13 14:22:42 -0800 | [diff] [blame] | 212 | const nsecs_t before = systemTime(SYSTEM_TIME_MONOTONIC); |
Lloyd Pique | e82ed2d | 2019-11-13 19:28:12 -0800 | [diff] [blame] | 213 | mEngine.preComposition(mRefreshArgs); |
Lloyd Pique | ab039b5 | 2019-02-13 14:22:42 -0800 | [diff] [blame] | 214 | const nsecs_t after = systemTime(SYSTEM_TIME_MONOTONIC); |
| 215 | |
| 216 | // The frame timestamp should be between the before and after timestamps |
| 217 | EXPECT_GE(mEngine.getLastFrameRefreshTimestamp(), before); |
| 218 | EXPECT_LE(mEngine.getLastFrameRefreshTimestamp(), after); |
| 219 | } |
| 220 | |
Lloyd Pique | e82ed2d | 2019-11-13 19:28:12 -0800 | [diff] [blame] | 221 | TEST_F(CompositionTestPreComposition, preCompositionInvokesLayerPreCompositionWithFrameTimestamp) { |
Lloyd Pique | ab039b5 | 2019-02-13 14:22:42 -0800 | [diff] [blame] | 222 | nsecs_t ts1 = 0; |
| 223 | nsecs_t ts2 = 0; |
| 224 | nsecs_t ts3 = 0; |
| 225 | EXPECT_CALL(*mLayer1FE, onPreComposition(_)).WillOnce(DoAll(SaveArg<0>(&ts1), Return(false))); |
| 226 | EXPECT_CALL(*mLayer2FE, onPreComposition(_)).WillOnce(DoAll(SaveArg<0>(&ts2), Return(false))); |
| 227 | EXPECT_CALL(*mLayer3FE, onPreComposition(_)).WillOnce(DoAll(SaveArg<0>(&ts3), Return(false))); |
| 228 | |
Lloyd Pique | e82ed2d | 2019-11-13 19:28:12 -0800 | [diff] [blame] | 229 | mRefreshArgs.outputs = {mOutput1}; |
Lloyd Pique | de19665 | 2020-01-22 17:29:58 -0800 | [diff] [blame] | 230 | mRefreshArgs.layers = {mLayer1FE, mLayer2FE, mLayer3FE}; |
Lloyd Pique | e82ed2d | 2019-11-13 19:28:12 -0800 | [diff] [blame] | 231 | |
Lloyd Pique | ab039b5 | 2019-02-13 14:22:42 -0800 | [diff] [blame] | 232 | mEngine.preComposition(mRefreshArgs); |
| 233 | |
| 234 | // Each of the onPreComposition calls should used the same refresh timestamp |
| 235 | EXPECT_EQ(ts1, mEngine.getLastFrameRefreshTimestamp()); |
| 236 | EXPECT_EQ(ts2, mEngine.getLastFrameRefreshTimestamp()); |
| 237 | EXPECT_EQ(ts3, mEngine.getLastFrameRefreshTimestamp()); |
| 238 | } |
| 239 | |
Lloyd Pique | e82ed2d | 2019-11-13 19:28:12 -0800 | [diff] [blame] | 240 | TEST_F(CompositionTestPreComposition, preCompositionDefaultsToNoUpdateNeeded) { |
Lloyd Pique | ab039b5 | 2019-02-13 14:22:42 -0800 | [diff] [blame] | 241 | EXPECT_CALL(*mLayer1FE, onPreComposition(_)).WillOnce(Return(false)); |
| 242 | EXPECT_CALL(*mLayer2FE, onPreComposition(_)).WillOnce(Return(false)); |
| 243 | EXPECT_CALL(*mLayer3FE, onPreComposition(_)).WillOnce(Return(false)); |
| 244 | |
| 245 | mEngine.setNeedsAnotherUpdateForTest(true); |
| 246 | |
Lloyd Pique | e82ed2d | 2019-11-13 19:28:12 -0800 | [diff] [blame] | 247 | mRefreshArgs.outputs = {mOutput1}; |
Lloyd Pique | de19665 | 2020-01-22 17:29:58 -0800 | [diff] [blame] | 248 | mRefreshArgs.layers = {mLayer1FE, mLayer2FE, mLayer3FE}; |
Lloyd Pique | e82ed2d | 2019-11-13 19:28:12 -0800 | [diff] [blame] | 249 | |
Lloyd Pique | ab039b5 | 2019-02-13 14:22:42 -0800 | [diff] [blame] | 250 | mEngine.preComposition(mRefreshArgs); |
| 251 | |
| 252 | // The call should have cleared the needsAnotherUpdate flag |
| 253 | EXPECT_FALSE(mEngine.needsAnotherUpdate()); |
| 254 | } |
| 255 | |
Lloyd Pique | e82ed2d | 2019-11-13 19:28:12 -0800 | [diff] [blame] | 256 | TEST_F(CompositionTestPreComposition, |
| 257 | preCompositionSetsNeedsAnotherUpdateIfAtLeastOneLayerRequestsIt) { |
Lloyd Pique | ab039b5 | 2019-02-13 14:22:42 -0800 | [diff] [blame] | 258 | EXPECT_CALL(*mLayer1FE, onPreComposition(_)).WillOnce(Return(true)); |
| 259 | EXPECT_CALL(*mLayer2FE, onPreComposition(_)).WillOnce(Return(false)); |
| 260 | EXPECT_CALL(*mLayer3FE, onPreComposition(_)).WillOnce(Return(false)); |
| 261 | |
Lloyd Pique | e82ed2d | 2019-11-13 19:28:12 -0800 | [diff] [blame] | 262 | mRefreshArgs.outputs = {mOutput1}; |
Lloyd Pique | de19665 | 2020-01-22 17:29:58 -0800 | [diff] [blame] | 263 | mRefreshArgs.layers = {mLayer1FE, mLayer2FE, mLayer3FE}; |
Lloyd Pique | e82ed2d | 2019-11-13 19:28:12 -0800 | [diff] [blame] | 264 | |
Lloyd Pique | ab039b5 | 2019-02-13 14:22:42 -0800 | [diff] [blame] | 265 | mEngine.preComposition(mRefreshArgs); |
| 266 | |
| 267 | EXPECT_TRUE(mEngine.needsAnotherUpdate()); |
| 268 | } |
| 269 | |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 270 | } // namespace |
| 271 | } // namespace android::compositionengine |