Searched refs:HWC2 (Results 1 - 13 of 13) sorted by relevance
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | HWComposer.h | 20 #include "HWC2.h" 46 namespace HWC2 { namespace 74 void registerCallback(HWC2::ComposerCallback* callback, 77 bool hasCapability(HWC2::Capability capability) const; 85 HWC2::Layer* createLayer(int32_t displayId); 87 void destroyLayer(int32_t displayId, HWC2::Layer* layer); 125 HWC2::Layer* layer) const; 152 void onHotplug(hwc2_display_t displayId, int32_t displayType, HWC2::Connection connection); 154 void setVsyncEnabled(int32_t displayId, HWC2::Vsync enabled); 162 std::vector<std::shared_ptr<const HWC2 [all...] |
H A D | HWComposer.cpp | 51 #include "HWC2.h" 74 if (error != HWC2::Error::None) { \ 90 : mHwcDevice(std::make_unique<HWC2::Device>(std::move(composer))) {} 94 void HWComposer::registerCallback(HWC2::ComposerCallback* callback, 99 bool HWComposer::hasCapability(HWC2::Capability capability) const 109 void HWComposer::validateChange(HWC2::Composition from, HWC2::Composition to) { 112 case HWC2::Composition::Client: 115 case HWC2::Composition::Device: 116 case HWC2 [all...] |
H A D | HWC2.cpp | 20 #define LOG_TAG "HWC2" 23 #include "HWC2.h" 49 namespace HWC2 { namespace 72 HWC2::Connection connection = static_cast<HWC2::Connection>(conn); 115 // Required by HWC2 device 243 auto error = setVsyncEnabled(HWC2::Vsync::Disable); 279 // Required by HWC2 display 469 Error Display::getRequests(HWC2::DisplayRequest* outDisplayRequests, 527 auto error = static_cast<HWC2 [all...] |
H A D | HWC2.h | 53 namespace HWC2 { namespace 65 // HWC2::Device::registerCallback(). It's used to help differentiate callbacks 87 // Required by HWC2 202 // Required by HWC2 224 // Doesn't call into the HWC2 device, so no errors are possible 281 // These are references to data owned by HWC2::Device, which will outlive 282 // this HWC2::Display, so these references are guaranteed to be valid for 339 // These are references to data owned by HWC2::Device, which will outlive 340 // this HWC2::Layer, so these references are guaranteed to be valid for 352 } // namespace HWC2 [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | ColorLayer.cpp | 72 if (error != HWC2::Error::None) { 78 setCompositionType(hwcId, HWC2::Composition::SolidColor); 81 if (error != HWC2::Error::None) { 90 if (error != HWC2::Error::None) { 96 error = hwcLayer->setTransform(HWC2::Transform::None); 97 if (error != HWC2::Error::None) {
|
H A D | Layer.h | 78 HWC2::Composition compositionType; 84 HWC2::BlendMode blendMode; 88 HWC2::Transform transform; 117 compositionType(HWC2::Composition::Invalid), 119 transform(HWC2::Transform::None) {} 122 HWC2::Layer* layer; 124 HWC2::Composition compositionType; 129 HWC2::Transform transform; 390 void setCompositionType(int32_t hwcId, HWC2::Composition type, bool callIntoHwc = true); 391 HWC2 [all...] |
H A D | BufferLayer.cpp | 628 if (error != HWC2::Error::None) { 635 if (error != HWC2::Error::None) { 643 setCompositionType(hwcId, HWC2::Composition::Sideband); 646 if (error != HWC2::Error::None) { 657 setCompositionType(hwcId, HWC2::Composition::Cursor); 660 setCompositionType(hwcId, HWC2::Composition::Device); 665 if (error != HWC2::Error::None) { 672 if (error != HWC2::Error::None && error != HWC2::Error::Unsupported) { 684 if (error != HWC2 [all...] |
H A D | Layer.cpp | 225 HWC2::Layer* layer = hwc->createLayer(hwcId); 233 [this, hwcId](HWC2::Layer* /*layer*/) { getBE().mHwcLayers.erase(hwcId); }); 502 auto blendMode = HWC2::BlendMode::None; 505 mPremultipliedAlpha ? HWC2::BlendMode::Premultiplied : HWC2::BlendMode::Coverage; 508 ALOGE_IF(error != HWC2::Error::None, 556 if (error != HWC2::Error::None) { 566 if (error != HWC2::Error::None) { 577 ALOGE_IF(error != HWC2::Error::None, 583 ALOGE_IF(error != HWC2 [all...] |
H A D | SurfaceFlinger.h | 69 #include "DisplayHardware/HWC2.h" 232 private HWC2::ComposerCallback 457 * HWC2::ComposerCallback / HWComposer::EventHandler interface 462 HWC2::Connection connection) override; 688 HWC2::Connection connection) const; 813 HWC2::Connection connection = HWC2::Connection::Invalid;
|
H A D | SurfaceFlinger.cpp | 725 HWC2::Capability::PresentFenceIsNotReliable)) { 802 HWC2::Capability::PresentFenceIsNotReliable)) { 1360 HWC2::Connection connection) { 1362 connection == HWC2::Connection::Connected ? "connected" : "disconnected"); 1398 enabled ? HWC2::Vsync::Enable : HWC2::Vsync::Disable); 2048 layer->setCompositionType(hwcId, HWC2::Composition::Client); 2130 if (layer->getCompositionType(hwcId) == HWC2::Composition::Client) { 2196 HWC2::Connection connection) const { 2212 } else if (connection == HWC2 [all...] |
/frameworks/native/libs/vr/libvrflinger/ |
H A D | hwc_types.h | 5 // between HWC1, HWC2 C/C++11, and HIDL types. Particularly bothersome is the 31 using DisplayRequest = std::underlying_type<HWC2::DisplayRequest>::type; 139 // Converts to string using HWC2 stringification of BaseType. 141 return HWC2::to_string(static_cast<BaseType>(value)); 158 struct Attribute final : public Wrapper<HWC2::Attribute> { 172 struct BlendMode final : public Wrapper<HWC2::BlendMode> { 184 struct Composition final : public Wrapper<HWC2::Composition> { 198 struct DisplayType final : public Wrapper<HWC2::DisplayType> { 209 struct Error final : public Wrapper<HWC2::Error> { 226 struct LayerRequest final : public Wrapper<HWC2 [all...] |
/frameworks/native/services/surfaceflinger/tests/unittests/ |
H A D | TestableSurfaceFlinger.h | 84 HWC2::Connection connection) { 153 struct HWC2Display : public HWC2::Display { 155 const std::unordered_set<HWC2::Capability>& capabilities, hwc2_display_t id, 156 HWC2::DisplayType type) 157 : HWC2::Display(composer, capabilities, id, type) {} 160 mType = HWC2::DisplayType::Invalid; 176 FakeHwcDisplayInjector(DisplayDevice::DisplayType type, HWC2::DisplayType hwcDisplayType) 214 auto& addCapability(HWC2::Capability cap) { 223 auto config = HWC2::Display::Config::Builder(*display, mActiveConfig); 242 HWC2 [all...] |
H A D | DisplayTransactionTest.cpp | 300 template <hwc2_display_t hwcDisplayId, HWC2::DisplayType hwcDisplayType, typename DisplayVariant> 306 static constexpr HWC2::DisplayType HWC_DISPLAY_TYPE = hwcDisplayType; 312 HWC2::Connection connection) { 382 public HwcDisplayVariant<hwcDisplayId, HWC2::DisplayType::Physical, 429 public HwcDisplayVariant<1010, HWC2::DisplayType::Virtual, 721 mFlinger.onHotplugReceived(currentSequenceId, displayId1, HWC2::Connection::Connected); 722 mFlinger.onHotplugReceived(currentSequenceId, displayId2, HWC2::Connection::Disconnected); 734 EXPECT_EQ(HWC2::Connection::Connected, pendingEvents[0].connection); 736 EXPECT_EQ(HWC2::Connection::Disconnected, pendingEvents[1].connection); 764 mFlinger.onHotplugReceived(otherSequenceId, displayId, HWC2 [all...] |
Completed in 280 milliseconds