Loading services/surfaceflinger/CompositionEngine/Android.bp +16 −8 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ cc_defaults { "libSurfaceFlingerProp", "libui", "libutils", "server_configurable_flags", ], static_libs: [ "liblayers_proto", Loading @@ -60,13 +61,8 @@ cc_defaults { ], } cc_library { name: "libcompositionengine", defaults: ["libcompositionengine_defaults"], static_libs: [ "libsurfaceflinger_common", "libsurfaceflingerflags", ], filegroup { name: "libcompositionengine_sources", srcs: [ "src/planner/CachedSet.cpp", "src/planner/Flattener.cpp", Loading @@ -89,6 +85,18 @@ cc_library { "src/OutputLayerCompositionState.cpp", "src/RenderSurface.cpp", ], } cc_library { name: "libcompositionengine", defaults: ["libcompositionengine_defaults"], static_libs: [ "libsurfaceflinger_common", "libsurfaceflingerflags", ], srcs: [ ":libcompositionengine_sources", ], local_include_dirs: ["include"], export_include_dirs: ["include"], shared_libs: [ Loading Loading @@ -133,6 +141,7 @@ cc_test { ], defaults: ["libcompositionengine_defaults"], srcs: [ ":libcompositionengine_sources", "tests/planner/CachedSetTest.cpp", "tests/planner/FlattenerTest.cpp", "tests/planner/LayerStateTest.cpp", Loading @@ -151,7 +160,6 @@ cc_test { "tests/RenderSurfaceTest.cpp", ], static_libs: [ "libcompositionengine", "libcompositionengine_mocks", "libgui_mocks", "librenderengine_mocks", Loading services/surfaceflinger/CompositionEngine/include/compositionengine/DisplaySurface.h +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ public: // // advanceFrame must be followed by a call to onFrameCommitted before // advanceFrame may be called again. virtual status_t advanceFrame() = 0; virtual status_t advanceFrame(float hdrSdrRatio) = 0; // onFrameCommitted is called after the frame has been committed to the // hardware composer. The surface collects the release fence for this Loading services/surfaceflinger/CompositionEngine/include/compositionengine/RenderSurface.h +1 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,7 @@ public: // Queues the drawn buffer for consumption by HWC. readyFence is the fence // which will fire when the buffer is ready for consumption. virtual void queueBuffer(base::unique_fd readyFence) = 0; virtual void queueBuffer(base::unique_fd readyFence, float hdrSdrRatio) = 0; // Called after the HWC calls are made to present the display virtual void onPresentDisplayCompleted() = 0; Loading services/surfaceflinger/CompositionEngine/include/compositionengine/impl/Output.h +3 −1 Original line number Diff line number Diff line Loading @@ -137,7 +137,8 @@ protected: void applyCompositionStrategy(const std::optional<DeviceRequestedChanges>&) override{}; bool getSkipColorTransform() const override; compositionengine::Output::FrameFences presentFrame() override; virtual renderengine::DisplaySettings generateClientCompositionDisplaySettings() const; virtual renderengine::DisplaySettings generateClientCompositionDisplaySettings( const std::shared_ptr<renderengine::ExternalTexture>& buffer) const; std::vector<LayerFE::LayerSettings> generateClientCompositionRequests( bool supportsProtectedContent, ui::Dataspace outputDataspace, std::vector<LayerFE*>& outLayerFEs) override; Loading Loading @@ -168,6 +169,7 @@ private: compositionengine::Output::ColorProfile pickColorProfile( const compositionengine::CompositionRefreshArgs&) const; void updateHwcAsyncWorker(); float getHdrSdrRatio(const std::shared_ptr<renderengine::ExternalTexture>& buffer) const; std::string mName; std::string mNamePlusId; Loading services/surfaceflinger/CompositionEngine/include/compositionengine/impl/RenderSurface.h +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ public: void prepareFrame(bool usesClientComposition, bool usesDeviceComposition) override; std::shared_ptr<renderengine::ExternalTexture> dequeueBuffer( base::unique_fd* bufferFence) override; void queueBuffer(base::unique_fd readyFence) override; void queueBuffer(base::unique_fd readyFence, float hdrSdrRatio) override; void onPresentDisplayCompleted() override; bool supportsCompositionStrategyPrediction() const override; Loading Loading
services/surfaceflinger/CompositionEngine/Android.bp +16 −8 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ cc_defaults { "libSurfaceFlingerProp", "libui", "libutils", "server_configurable_flags", ], static_libs: [ "liblayers_proto", Loading @@ -60,13 +61,8 @@ cc_defaults { ], } cc_library { name: "libcompositionengine", defaults: ["libcompositionengine_defaults"], static_libs: [ "libsurfaceflinger_common", "libsurfaceflingerflags", ], filegroup { name: "libcompositionengine_sources", srcs: [ "src/planner/CachedSet.cpp", "src/planner/Flattener.cpp", Loading @@ -89,6 +85,18 @@ cc_library { "src/OutputLayerCompositionState.cpp", "src/RenderSurface.cpp", ], } cc_library { name: "libcompositionengine", defaults: ["libcompositionengine_defaults"], static_libs: [ "libsurfaceflinger_common", "libsurfaceflingerflags", ], srcs: [ ":libcompositionengine_sources", ], local_include_dirs: ["include"], export_include_dirs: ["include"], shared_libs: [ Loading Loading @@ -133,6 +141,7 @@ cc_test { ], defaults: ["libcompositionengine_defaults"], srcs: [ ":libcompositionengine_sources", "tests/planner/CachedSetTest.cpp", "tests/planner/FlattenerTest.cpp", "tests/planner/LayerStateTest.cpp", Loading @@ -151,7 +160,6 @@ cc_test { "tests/RenderSurfaceTest.cpp", ], static_libs: [ "libcompositionengine", "libcompositionengine_mocks", "libgui_mocks", "librenderengine_mocks", Loading
services/surfaceflinger/CompositionEngine/include/compositionengine/DisplaySurface.h +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ public: // // advanceFrame must be followed by a call to onFrameCommitted before // advanceFrame may be called again. virtual status_t advanceFrame() = 0; virtual status_t advanceFrame(float hdrSdrRatio) = 0; // onFrameCommitted is called after the frame has been committed to the // hardware composer. The surface collects the release fence for this Loading
services/surfaceflinger/CompositionEngine/include/compositionengine/RenderSurface.h +1 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,7 @@ public: // Queues the drawn buffer for consumption by HWC. readyFence is the fence // which will fire when the buffer is ready for consumption. virtual void queueBuffer(base::unique_fd readyFence) = 0; virtual void queueBuffer(base::unique_fd readyFence, float hdrSdrRatio) = 0; // Called after the HWC calls are made to present the display virtual void onPresentDisplayCompleted() = 0; Loading
services/surfaceflinger/CompositionEngine/include/compositionengine/impl/Output.h +3 −1 Original line number Diff line number Diff line Loading @@ -137,7 +137,8 @@ protected: void applyCompositionStrategy(const std::optional<DeviceRequestedChanges>&) override{}; bool getSkipColorTransform() const override; compositionengine::Output::FrameFences presentFrame() override; virtual renderengine::DisplaySettings generateClientCompositionDisplaySettings() const; virtual renderengine::DisplaySettings generateClientCompositionDisplaySettings( const std::shared_ptr<renderengine::ExternalTexture>& buffer) const; std::vector<LayerFE::LayerSettings> generateClientCompositionRequests( bool supportsProtectedContent, ui::Dataspace outputDataspace, std::vector<LayerFE*>& outLayerFEs) override; Loading Loading @@ -168,6 +169,7 @@ private: compositionengine::Output::ColorProfile pickColorProfile( const compositionengine::CompositionRefreshArgs&) const; void updateHwcAsyncWorker(); float getHdrSdrRatio(const std::shared_ptr<renderengine::ExternalTexture>& buffer) const; std::string mName; std::string mNamePlusId; Loading
services/surfaceflinger/CompositionEngine/include/compositionengine/impl/RenderSurface.h +1 −1 Original line number Diff line number Diff line Loading @@ -60,7 +60,7 @@ public: void prepareFrame(bool usesClientComposition, bool usesDeviceComposition) override; std::shared_ptr<renderengine::ExternalTexture> dequeueBuffer( base::unique_fd* bufferFence) override; void queueBuffer(base::unique_fd readyFence) override; void queueBuffer(base::unique_fd readyFence, float hdrSdrRatio) override; void onPresentDisplayCompleted() override; bool supportsCompositionStrategyPrediction() const override; Loading