/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/ |
D | OutputLayer.h | 42 void setHwcLayer(std::shared_ptr<HWC2::Layer>) override; 50 HWC2::Layer* getHwcLayer() const override; 71 void writeOutputDependentGeometryStateToHWC(HWC2::Layer*, Hwc2::IComposerClient::Composition, 73 void writeOutputIndependentGeometryStateToHWC(HWC2::Layer*, const LayerFECompositionState&, 75 void writeOutputDependentPerFrameStateToHWC(HWC2::Layer*); 76 void writeOutputIndependentPerFrameStateToHWC(HWC2::Layer*, const LayerFECompositionState&, 78 void writeSolidColorStateToHWC(HWC2::Layer*, const LayerFECompositionState&); 79 void writeSidebandStateToHWC(HWC2::Layer*, const LayerFECompositionState&); 80 void writeBufferStateToHWC(HWC2::Layer*, const LayerFECompositionState&, bool skipLayer); 81 void writeCompositionTypeToHWC(HWC2::Layer*, Hwc2::IComposerClient::Composition,
|
D | OutputLayerCompositionState.h | 43 namespace HWC2 { 120 explicit Hwc(std::shared_ptr<HWC2::Layer> hwcLayer) : hwcLayer(hwcLayer) {} in Hwc() 123 std::shared_ptr<HWC2::Layer> hwcLayer;
|
/frameworks/native/libs/vr/libvrflinger/ |
D | hwc_types.h | 31 using DisplayRequest = std::underlying_type<HWC2::DisplayRequest>::type; 146 return HWC2::to_string(static_cast<BaseType>(value)); 163 struct Attribute final : public Wrapper<HWC2::Attribute> { 177 struct BlendMode final : public Wrapper<HWC2::BlendMode> { 189 struct Composition final : public Wrapper<HWC2::Composition> { 203 struct DisplayType final : public Wrapper<HWC2::DisplayType> { 214 struct Error final : public Wrapper<HWC2::Error> { 231 struct LayerRequest final : public Wrapper<HWC2::LayerRequest> { 240 struct PowerMode final : public Wrapper<HWC2::PowerMode> { 252 struct Transform final : public Wrapper<HWC2::Transform> { [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/ |
D | OutputLayer.h | 41 namespace HWC2 { 62 virtual void setHwcLayer(std::shared_ptr<HWC2::Layer>) = 0; 106 virtual HWC2::Layer* getHwcLayer() const = 0;
|
D | Output.h | 40 namespace HWC2 { 127 std::unordered_map<HWC2::Layer*, sp<Fence>> layerFences;
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWComposer.h | 74 using ChangedTypes = std::unordered_map<HWC2::Layer*, hal::Composition>; 77 using LayerRequests = std::unordered_map<HWC2::Layer*, hal::LayerRequest>; 103 virtual void setCallback(HWC2::ComposerCallback*) = 0; 125 virtual std::shared_ptr<HWC2::Layer> createLayer(HalDisplayId) = 0; 161 virtual sp<Fence> getLayerReleaseFence(HalDisplayId, HWC2::Layer*) const = 0; 257 void setCallback(HWC2::ComposerCallback*) override; 275 std::shared_ptr<HWC2::Layer> createLayer(HalDisplayId) override; 304 sp<Fence> getLayerReleaseFence(HalDisplayId, HWC2::Layer*) const override; 391 std::unique_ptr<HWC2::Display> hwcDisplay; 393 std::unordered_map<HWC2::Layer*, sp<Fence>> releaseFences;
|
D | HWC2.h | 50 namespace HWC2 { 87 [[clang::warn_unused_result]] virtual base::expected<std::shared_ptr<HWC2::Layer>, hal::Error> 155 class Display : public HWC2::Display { 163 base::expected<std::shared_ptr<HWC2::Layer>, hal::Error> createLayer() override; 165 std::unordered_map<HWC2::Layer*, hal::Composition>* outTypes) override; 176 std::unordered_map<HWC2::Layer*, hal::LayerRequest>* outLayerRequests) override; 187 hal::Error getReleaseFences(std::unordered_map<HWC2::Layer*, android::sp<android::Fence>>* 227 std::shared_ptr<HWC2::Layer> getLayerById(hal::HWLayerId id) const; 243 using Layers = std::unordered_map<hal::HWLayerId, std::weak_ptr<HWC2::impl::Layer>>; 296 class Layer : public HWC2::Layer { [all …]
|
D | HWC2.cpp | 53 namespace HWC2 { namespace 99 error = setVsyncEnabled(HWC2::Vsync::DISABLE); in ~Display() 125 base::expected<std::shared_ptr<HWC2::Layer>, hal::Error> Display::createLayer() { in createLayer() 148 Error Display::getChangedCompositionTypes(std::unordered_map<HWC2::Layer*, Composition>* outTypes) { in getChangedCompositionTypes() 240 Error Display::getRequests(HWC2::DisplayRequest* outDisplayRequests, in getRequests() 241 std::unordered_map<HWC2::Layer*, LayerRequest>* outLayerRequests) { in getRequests() 299 auto error = static_cast<HWC2::Error>(intError); in getHdrCapabilities() 331 Error Display::getReleaseFences(std::unordered_map<HWC2::Layer*, sp<Fence>>* outFences) const { in getReleaseFences() 341 std::unordered_map<HWC2::Layer*, sp<Fence>> releaseFences; in getReleaseFences() 557 std::shared_ptr<HWC2::Layer> Display::getLayerById(HWLayerId id) const { in getLayerById() [all …]
|
D | HWComposer.cpp | 81 using android::HWC2::ComposerCallback; 152 void HWComposer::setCallback(HWC2::ComposerCallback* callback) { in setCallback() 275 auto display = std::make_unique<HWC2::impl::Display>(*mComposer.get(), mCapabilities, in allocateVirtualDisplay() 296 std::make_unique<HWC2::impl::Display>(*mComposer.get(), mCapabilities, hwcDisplayId, in allocatePhysicalDisplay() 312 std::shared_ptr<HWC2::Layer> HWComposer::createLayer(HalDisplayId displayId) { in createLayer() 510 std::unordered_map<HWC2::Layer*, sp<Fence>> releaseFences; in getDeviceCompositionChanges() 555 sp<Fence> HWComposer::getLayerReleaseFence(HalDisplayId displayId, HWC2::Layer* layer) const { in getLayerReleaseFence() 594 std::unordered_map<HWC2::Layer*, sp<Fence>> releaseFences; in presentAndGetReleaseFences()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/mock/ |
D | OutputLayer.h | 34 MOCK_METHOD1(setHwcLayer, void(std::shared_ptr<HWC2::Layer>)); 46 MOCK_CONST_METHOD0(getHwcLayer, HWC2::Layer*());
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/ |
D | MockHWC2.h | 23 namespace android::HWC2::mock { 25 class Display : public HWC2::Display { 39 MOCK_METHOD((base::expected<std::shared_ptr<HWC2::Layer>, hal::Error>), createLayer, (), 92 class Layer : public HWC2::Layer {
|
D | MockHWC2.cpp | 22 namespace android::HWC2::mock { namespace
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | MockHWC2.h | 39 namespace HWC2 { 46 class Layer : public HWC2::Layer {
|
D | MockHWComposer.h | 42 MOCK_METHOD1(setCallback, void(HWC2::ComposerCallback*)); 54 MOCK_METHOD1(createLayer, std::shared_ptr<HWC2::Layer>(HalDisplayId)); 71 MOCK_CONST_METHOD2(getLayerReleaseFence, sp<Fence>(HalDisplayId, HWC2::Layer*));
|
D | MockHWC2.cpp | 19 namespace android::HWC2 { namespace
|
D | OutputLayerTest.cpp | 134 auto hwcLayer = std::make_shared<StrictMock<HWC2::mock::Layer>>(); in TEST_F() 870 std::shared_ptr<HWC2::mock::Layer> mHwcLayer{std::make_shared<StrictMock<HWC2::mock::Layer>>()}; 1244 std::shared_ptr<HWC2::mock::Layer> mHwcLayer{std::make_shared<StrictMock<HWC2::mock::Layer>>()}; 1301 auto hwcLayer = std::make_shared<StrictMock<HWC2::mock::Layer>>(); in TEST_F()
|
D | DisplayTest.cpp | 74 StrictMock<HWC2::mock::Layer> hwc2Layer; 219 StrictMock<HWC2::mock::Layer> hwc2LayerUnknown; 489 auto hwcLayer = std::make_shared<StrictMock<HWC2::mock::Layer>>(); in TEST_F()
|
D | OutputTest.cpp | 2831 StrictMock<HWC2::mock::Layer> hwc2Layer;
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/ |
D | OutputLayer.cpp | 62 void OutputLayer::setHwcLayer(std::shared_ptr<HWC2::Layer> hwcLayer) { in setHwcLayer() 374 void OutputLayer::writeOutputDependentGeometryStateToHWC(HWC2::Layer* hwcLayer, in writeOutputDependentGeometryStateToHWC() 427 HWC2::Layer* hwcLayer, const LayerFECompositionState& outputIndependentState, in writeOutputIndependentGeometryStateToHWC() 459 void OutputLayer::writeOutputDependentPerFrameStateToHWC(HWC2::Layer* hwcLayer) { in writeOutputDependentPerFrameStateToHWC() 484 HWC2::Layer* hwcLayer, const LayerFECompositionState& outputIndependentState, in writeOutputIndependentPerFrameStateToHWC() 527 void OutputLayer::writeSolidColorStateToHWC(HWC2::Layer* hwcLayer, in writeSolidColorStateToHWC() 544 void OutputLayer::writeSidebandStateToHWC(HWC2::Layer* hwcLayer, in writeSidebandStateToHWC() 554 void OutputLayer::writeBufferStateToHWC(HWC2::Layer* hwcLayer, in writeBufferStateToHWC() 590 void OutputLayer::writeCompositionTypeToHWC(HWC2::Layer* hwcLayer, in writeCompositionTypeToHWC() 642 HWC2::Layer* OutputLayer::getHwcLayer() const { in getHwcLayer()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | HWComposerTest.cpp | 60 struct MockHWC2ComposerCallback final : StrictMock<HWC2::ComposerCallback> { 132 StrictMock<HWC2::mock::Display> mDisplay; 133 HWC2::impl::Layer mLayer{*mHal, mCapabilies, mDisplay, kLayerId};
|
D | TestableSurfaceFlinger.h | 469 struct HWC2Display : public HWC2::impl::Display { 473 : HWC2::impl::Display(composer, capabilities, id, type) {} in HWC2Display()
|
/frameworks/native/services/surfaceflinger/ |
D | Android.bp | 149 "DisplayHardware/HWC2.cpp",
|
D | SurfaceFlinger.h | 178 private HWC2::ComposerCallback,
|