Loading services/surfaceflinger/ColorLayer.h +2 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,8 @@ public: void setPerFrameData(const sp<const DisplayDevice>& display) override; bool onPreComposition(nsecs_t /*refreshStartTime*/) override { return false; } protected: FloatRect computeCrop(const sp<const DisplayDevice>& /*display*/) const override { return {}; } }; Loading services/surfaceflinger/ContainerLayer.h +2 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,8 @@ public: void setPerFrameData(const sp<const DisplayDevice>& display) override; bool isCreatedFromMainThread() const override { return true; } bool onPreComposition(nsecs_t /*refreshStartTime*/) override { return false; } }; } // namespace android services/surfaceflinger/Layer.h +1 −1 Original line number Diff line number Diff line Loading @@ -401,7 +401,7 @@ public: * called before composition. * returns true if the layer has pending updates. */ virtual bool onPreComposition(nsecs_t /*refreshStartTime*/) { return true; } virtual bool onPreComposition(nsecs_t refreshStartTime) = 0; /* * called after composition. Loading services/surfaceflinger/tests/unittests/CompositionTest.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -553,10 +553,6 @@ struct BaseLayerProperties { IComposerClient::Color({0xff, 0xff, 0xff, 0xff}))) .Times(1); // TODO: ColorLayer::onPreComposition() always returns true, triggering an // extra layer update in SurfaceFlinger::preComposition(). This seems // wrong on the surface. EXPECT_CALL(*test->mMessageQueue, invalidate()).Times(1); } static void setupHwcSetPerFrameBufferCallExpectations(CompositionTest* test) { Loading Loading
services/surfaceflinger/ColorLayer.h +2 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,8 @@ public: void setPerFrameData(const sp<const DisplayDevice>& display) override; bool onPreComposition(nsecs_t /*refreshStartTime*/) override { return false; } protected: FloatRect computeCrop(const sp<const DisplayDevice>& /*display*/) const override { return {}; } }; Loading
services/surfaceflinger/ContainerLayer.h +2 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,8 @@ public: void setPerFrameData(const sp<const DisplayDevice>& display) override; bool isCreatedFromMainThread() const override { return true; } bool onPreComposition(nsecs_t /*refreshStartTime*/) override { return false; } }; } // namespace android
services/surfaceflinger/Layer.h +1 −1 Original line number Diff line number Diff line Loading @@ -401,7 +401,7 @@ public: * called before composition. * returns true if the layer has pending updates. */ virtual bool onPreComposition(nsecs_t /*refreshStartTime*/) { return true; } virtual bool onPreComposition(nsecs_t refreshStartTime) = 0; /* * called after composition. Loading
services/surfaceflinger/tests/unittests/CompositionTest.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -553,10 +553,6 @@ struct BaseLayerProperties { IComposerClient::Color({0xff, 0xff, 0xff, 0xff}))) .Times(1); // TODO: ColorLayer::onPreComposition() always returns true, triggering an // extra layer update in SurfaceFlinger::preComposition(). This seems // wrong on the surface. EXPECT_CALL(*test->mMessageQueue, invalidate()).Times(1); } static void setupHwcSetPerFrameBufferCallExpectations(CompositionTest* test) { Loading