Lines Matching refs:Hwc2
51 namespace Hwc2 = android::Hwc2;
59 inline bool hasMetadataKey(const std::set<Hwc2::PerFrameMetadataKey>& keys, in hasMetadataKey()
60 const Hwc2::PerFrameMetadataKey& key) { in hasMetadataKey()
64 class ComposerCallbackBridge : public Hwc2::IComposerCallback {
69 Return<void> onHotplug(Hwc2::Display display, in onHotplug()
77 Return<void> onRefresh(Hwc2::Display display) override in onRefresh()
83 Return<void> onVsync(Hwc2::Display display, int64_t timestamp) override in onVsync()
99 Device::Device(std::unique_ptr<android::Hwc2::Composer> composer) : mComposer(std::move(composer)) { in Device()
169 reinterpret_cast<Hwc2::IComposerClient::DisplayType *>( in onHotplug()
222 Display::Display(android::Hwc2::Composer& composer, in Display()
370 std::vector<Hwc2::Layer> layerIds; in getChangedCompositionTypes()
371 std::vector<Hwc2::IComposerClient::Composition> types; in getChangedCompositionTypes()
408 std::vector<Hwc2::PerFrameMetadataKey> tmpKeys; in getSupportedPerFrameMetadata()
419 std::set<Hwc2::PerFrameMetadataKey> keys(tmpKeys.begin(), tmpKeys.end()); in getSupportedPerFrameMetadata()
420 if (hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_RED_PRIMARY_X) && in getSupportedPerFrameMetadata()
421 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_RED_PRIMARY_Y) && in getSupportedPerFrameMetadata()
422 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_GREEN_PRIMARY_X) && in getSupportedPerFrameMetadata()
423 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_GREEN_PRIMARY_Y) && in getSupportedPerFrameMetadata()
424 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_BLUE_PRIMARY_X) && in getSupportedPerFrameMetadata()
425 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::DISPLAY_BLUE_PRIMARY_Y) && in getSupportedPerFrameMetadata()
426 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::WHITE_POINT_X) && in getSupportedPerFrameMetadata()
427 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::WHITE_POINT_Y) && in getSupportedPerFrameMetadata()
428 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::MAX_LUMINANCE) && in getSupportedPerFrameMetadata()
429 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::MIN_LUMINANCE)) { in getSupportedPerFrameMetadata()
433 if (hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::MAX_CONTENT_LIGHT_LEVEL) && in getSupportedPerFrameMetadata()
434 hasMetadataKey(keys, Hwc2::PerFrameMetadataKey::MAX_FRAME_AVERAGE_LIGHT_LEVEL)) { in getSupportedPerFrameMetadata()
473 std::vector<Hwc2::Layer> layerIds; in getRequests()
524 std::vector<Hwc2::Hdr> types; in getHdrCapabilities()
541 std::vector<Hwc2::Layer> layerIds; in getReleaseFences()
602 fenceFd, dataspace, std::vector<Hwc2::IComposerClient::Rect>()); in setClientTarget()
616 matrix.asArray(), static_cast<Hwc2::ColorTransform>(hint)); in setColorTransform()
632 auto intMode = static_cast<Hwc2::IComposerClient::PowerMode>(mode); in setPowerMode()
639 auto intEnabled = static_cast<Hwc2::IComposerClient::Vsync>(enabled); in setVsyncEnabled()
699 static_cast<Hwc2::IComposerClient::Attribute>(attribute), in getAttribute()
729 std::vector<Hwc2::Config> configIds; in loadConfigs()
756 Layer::Layer(android::Hwc2::Composer& composer, const std::unordered_set<Capability>& capabilities, in Layer()
803 Hwc2::Error intError = Hwc2::Error::NONE; in setSurfaceDamage()
806 mId, std::vector<Hwc2::IComposerClient::Rect>()); in setSurfaceDamage()
811 std::vector<Hwc2::IComposerClient::Rect> hwcRects; in setSurfaceDamage()
825 auto intMode = static_cast<Hwc2::IComposerClient::BlendMode>(mode); in setBlendMode()
832 Hwc2::IComposerClient::Color hwcColor{color.r, color.g, color.b, color.a}; in setColor()
839 auto intType = static_cast<Hwc2::IComposerClient::Composition>(type); in setCompositionType()
864 std::vector<Hwc2::PerFrameMetadata> perFrameMetadatas; in setPerFrameMetadata()
867 {{Hwc2::PerFrameMetadataKey::DISPLAY_RED_PRIMARY_X, in setPerFrameMetadata()
869 {Hwc2::PerFrameMetadataKey::DISPLAY_RED_PRIMARY_Y, in setPerFrameMetadata()
871 {Hwc2::PerFrameMetadataKey::DISPLAY_GREEN_PRIMARY_X, in setPerFrameMetadata()
873 {Hwc2::PerFrameMetadataKey::DISPLAY_GREEN_PRIMARY_Y, in setPerFrameMetadata()
875 {Hwc2::PerFrameMetadataKey::DISPLAY_BLUE_PRIMARY_X, in setPerFrameMetadata()
877 {Hwc2::PerFrameMetadataKey::DISPLAY_BLUE_PRIMARY_Y, in setPerFrameMetadata()
879 {Hwc2::PerFrameMetadataKey::WHITE_POINT_X, in setPerFrameMetadata()
881 {Hwc2::PerFrameMetadataKey::WHITE_POINT_Y, in setPerFrameMetadata()
883 {Hwc2::PerFrameMetadataKey::MAX_LUMINANCE, in setPerFrameMetadata()
885 {Hwc2::PerFrameMetadataKey::MIN_LUMINANCE, in setPerFrameMetadata()
891 {{Hwc2::PerFrameMetadataKey::MAX_CONTENT_LIGHT_LEVEL, in setPerFrameMetadata()
893 {Hwc2::PerFrameMetadataKey::MAX_FRAME_AVERAGE_LIGHT_LEVEL, in setPerFrameMetadata()
903 Hwc2::IComposerClient::Rect hwcRect{frame.left, frame.top, in setDisplayFrame()
928 Hwc2::IComposerClient::FRect hwcRect{ in setSourceCrop()
936 auto intTransform = static_cast<Hwc2::Transform>(transform); in setTransform()
946 std::vector<Hwc2::IComposerClient::Rect> hwcRects; in setVisibleRegion()