/hardware/qcom/display/msm8996/sdm/libs/hwc2/ |
hwc_layers.h | 23 /* This class translates HWC2 Layer functions to the SDM LayerStack 61 HWC2::Error SetLayerBlendMode(HWC2::BlendMode mode); 62 HWC2::Error SetLayerBuffer(buffer_handle_t buffer, int32_t acquire_fence); 63 HWC2::Error SetLayerColor(hwc_color_t color); 64 HWC2::Error SetLayerCompositionType(HWC2::Composition type); 65 HWC2::Error SetLayerDataspace(int32_t dataspace); 66 HWC2::Error SetLayerDisplayFrame(hwc_rect_t frame); 67 HWC2::Error SetLayerPlaneAlpha(float alpha) [all...] |
hwc_display.h | 55 HWC2::Error Init(); 56 HWC2::Error DeInit(); 58 HWC2::Error GetColorModes(uint32_t *out_num_modes, android_color_mode_t *out_modes); 59 HWC2::Error SetColorMode(android_color_mode_t mode); 60 HWC2::Error SetColorTransform(const float *matrix, android_color_transform_t hint); 65 HWC2::Error HandleColorModeTransform(android_color_mode_t mode, 97 virtual HWC2::PowerMode GetLastPowerMode(); 141 // HWC2 APIs 142 virtual HWC2::Error AcceptDisplayChanges(void); 143 virtual HWC2::Error GetActiveConfig(hwc2_config_t *out_config) [all...] |
hwc_callbacks.cpp | 37 void HWCCallbacks::Hotplug(hwc2_display_t display, HWC2::Connection state) { 55 HWC2::Error HWCCallbacks::Register(HWC2::Callback descriptor, hwc2_callback_data_t callback_data, 58 case HWC2::Callback::Hotplug: 62 case HWC2::Callback::Refresh: 66 case HWC2::Callback::Vsync: 71 return HWC2::Error::BadParameter; 73 return HWC2::Error::None;
|
hwc_callbacks.h | 43 void Hotplug(hwc2_display_t display, HWC2::Connection state); 46 HWC2::Error Register(HWC2::Callback, hwc2_callback_data_t callback_data,
|
hwc_layers.cpp | 55 HWC2::Error HWCLayer::SetLayerBuffer(buffer_handle_t buffer, int32_t acquire_fence) { 58 return HWC2::Error::BadParameter; 63 return HWC2::Error::BadParameter; 71 return HWC2::Error::BadParameter; 82 return HWC2::Error::BadLayer; 102 return HWC2::Error::None; 105 HWC2::Error HWCLayer::SetLayerSurfaceDamage(hwc_region_t damage) { 112 return HWC2::Error::None; 115 HWC2::Error HWCLayer::SetLayerBlendMode(HWC2::BlendMode mode) [all...] |
hwc_display_virtual.h | 46 virtual HWC2::Error Validate(uint32_t *out_num_types, uint32_t *out_num_requests); 47 virtual HWC2::Error Present(int32_t *out_retire_fence); 49 HWC2::Error SetOutputBuffer(buffer_handle_t buf, int32_t release_fence);
|
hwc_display.cpp | 61 HWC2::Error HWCColorMode::Init() { 66 HWC2::Error HWCColorMode::DeInit() { 68 return HWC2::Error::None; 78 HWC2::Error HWCColorMode::GetColorModes(uint32_t *out_num_modes, 86 return HWC2::Error::None; 89 HWC2::Error HWCColorMode::SetColorMode(android_color_mode_t mode) { 92 if (status != HWC2::Error::None) { 99 HWC2::Error HWCColorMode::SetColorTransform(const float *matrix, android_color_transform_t hint) { 101 return HWC2::Error::BadParameter; 108 if (status != HWC2::Error::None) [all...] |
hwc_display_primary.h | 56 virtual HWC2::Error Validate(uint32_t *out_num_types, uint32_t *out_num_requests); 57 virtual HWC2::Error Present(int32_t *out_retire_fence); 58 virtual HWC2::Error GetColorModes(uint32_t *out_num_modes, android_color_mode_t *out_modes); 59 virtual HWC2::Error SetColorMode(android_color_mode_t mode); 60 virtual HWC2::Error SetColorTransform(const float *matrix, android_color_transform_t hint);
|
hwc_display_external.h | 45 virtual HWC2::Error Validate(uint32_t *out_num_types, uint32_t *out_num_requests); 46 virtual HWC2::Error Present(int32_t *out_retire_fence);
|
hwc_display_virtual.cpp | 58 status = INT32(hwc_display_virtual->SetPowerMode(HWC2::PowerMode::On)); 111 HWC2::Error HWCDisplayVirtual::Validate(uint32_t *out_num_types, uint32_t *out_num_requests) { 112 auto status = HWC2::Error::None; 125 HWC2::Error HWCDisplayVirtual::Present(int32_t *out_retire_fence) { 126 auto status = HWC2::Error::None; 134 if (status == HWC2::Error::None) { 167 HWC2::Error HWCDisplayVirtual::SetOutputBuffer(buffer_handle_t buf, int32_t release_fence) { 169 return HWC2::Error::BadParameter; 187 return HWC2::Error::BadParameter; 211 return HWC2::Error::None [all...] |
hwc_session.cpp | 105 // TODO(user): This will need to be redone for HWC2 - right now we validate only 215 // HWC2 functions returned in GetFunction 216 // Defined in the same order as in the HWC2 header 238 if (status == HWC2::Error::None) { 325 auto attribute = static_cast<HWC2::Attribute>(int_attribute); 392 auto status = HWC2::Error::BadDisplay; 411 auto desc = static_cast<HWC2::Callback>(descriptor); 415 hwc_session->callbacks_.Hotplug(HWC_DISPLAY_PRIMARY, HWC2::Connection::Connected); 455 auto mode = static_cast<HWC2::BlendMode>(int_mode); 472 auto type = static_cast<HWC2::Composition>(int_type) [all...] |
hwc_display_primary.cpp | 158 HWC2::Error HWCDisplayPrimary::Validate(uint32_t *out_num_types, uint32_t *out_num_requests) { 159 auto status = HWC2::Error::None; 212 HWC2::Error HWCDisplayPrimary::Present(int32_t *out_retire_fence) { 213 auto status = HWC2::Error::None; 224 if (status == HWC2::Error::None) { 235 HWC2::Error HWCDisplayPrimary::GetColorModes(uint32_t *out_num_modes, 243 return HWC2::Error::None; 246 HWC2::Error HWCDisplayPrimary::SetColorMode(android_color_mode_t mode) { 248 if (status != HWC2::Error::None) { 258 HWC2::Error HWCDisplayPrimary::SetColorTransform(const float *matrix [all...] |
hwc_session.h | 45 HWC2::Error CreateVirtualDisplayObject(uint32_t width, uint32_t height, int32_t *format); 49 HWC2::Error (HWCDisplay::*member)(Args...), Args... args) { 55 auto status = HWC2::Error::BadDisplay; 65 hwc2_layer_t layer, HWC2::Error (HWCLayer::*member)(Args...), 72 auto status = HWC2::Error::BadDisplay; 74 status = HWC2::Error::BadLayer; 83 // HWC2 Functions that require a concrete implementation in hwc session
|
hwc_display_external.cpp | 104 HWC2::Error HWCDisplayExternal::Validate(uint32_t *out_num_types, uint32_t *out_num_requests) { 105 auto status = HWC2::Error::None; 123 HWC2::Error HWCDisplayExternal::Present(int32_t *out_retire_fence) { 124 auto status = HWC2::Error::None; 128 if (status == HWC2::Error::None) {
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
HWC2On1Adapter.h | 68 hwc2_function_pointer_t doGetFunction(HWC2::FunctionDescriptor descriptor); 71 auto descriptor = static_cast<HWC2::FunctionDescriptor>(intDesc); 77 HWC2::Error createVirtualDisplay(uint32_t width, uint32_t height, 89 HWC2::Error destroyVirtualDisplay(hwc2_display_t display); 108 HWC2::Error registerCallback(HWC2::Callback descriptor, 113 auto descriptor = static_cast<HWC2::Callback>(intDesc); 174 Display(HWC2On1Adapter& device, HWC2::DisplayType type); 188 // HWC2 Display functions 189 HWC2::Error acceptChanges() [all...] |
HWComposer.cpp | 51 #include "HWC2.h" 128 mHwcDevice = std::make_unique<HWC2::Device>( 140 mHwcDevice = std::make_unique<HWC2::Device>( 147 bool HWComposer::hasCapability(HWC2::Capability capability) const 157 void HWComposer::validateChange(HWC2::Composition from, HWC2::Composition to) { 160 case HWC2::Composition::Client: 163 case HWC2::Composition::Device: 164 case HWC2::Composition::SolidColor: 165 valid = (to == HWC2::Composition::Client) [all...] |
HWComposer.h | 24 #include "HWC2.h" 49 namespace HWC2 { 84 bool hasCapability(HWC2::Capability capability) const; 92 std::shared_ptr<HWC2::Layer> createLayer(int32_t displayId); 127 const std::shared_ptr<HWC2::Layer>& layer) const; 143 void setVsyncEnabled(int32_t disp, HWC2::Vsync enabled); 151 std::vector<std::shared_ptr<const HWC2::Display::Config>> 154 std::shared_ptr<const HWC2::Display::Config> 170 static void validateChange(HWC2::Composition from, HWC2::Composition to) [all...] |
HWC2.h | 47 namespace HWC2 { 63 friend class HWC2::Display; 64 friend class HWC2::Layer; 66 // Required by HWC2 96 bool hasCapability(HWC2::Capability capability) const; 203 friend class HWC2::Device; 204 friend class HWC2::Layer; 275 // Required by HWC2 287 // Doesn't call into the HWC2 device, so no errors are possible 397 } // namespace HWC2 [all...] |
HWC2On1Adapter.cpp | 76 using namespace HWC2; 370 HWC2::DisplayType::Virtual); 550 HWC2On1Adapter::Display::Display(HWC2On1Adapter& device, HWC2::DisplayType type) 750 // This isn't supported on HWC1, so per the HWC2 header, return numTypes = 0 [all...] |
HWC2.cpp | 20 #define LOG_TAG "HWC2" 23 #include "HWC2.h" 39 auto device = static_cast<HWC2::Device*>(callbackData); 42 auto connected = static_cast<HWC2::Connection>(intConnected); 52 auto device = static_cast<HWC2::Device*>(callbackData); 64 auto device = static_cast<HWC2::Device*>(callbackData); 83 namespace HWC2 { 159 DisplayType displayType = HWC2::DisplayType::Invalid; 168 if (displayType == HWC2::DisplayType::Physical) { 169 error = display->setVsyncEnabled(HWC2::Vsync::Disable) [all...] |
/frameworks/native/services/surfaceflinger/ |
Layer.h | 243 void setCompositionType(int32_t hwcId, HWC2::Composition type, 245 HWC2::Composition getCompositionType(int32_t hwcId) const; 373 std::shared_ptr<HWC2::Layer> getHwcLayer(int32_t hwcId) { 380 void setHwcLayer(int32_t hwcId, std::shared_ptr<HWC2::Layer>&& layer) { 584 compositionType(HWC2::Composition::Invalid), 587 std::shared_ptr<HWC2::Layer> layer; 589 HWC2::Composition compositionType;
|
Layer.cpp | 535 HWC2::BlendMode::Premultiplied : HWC2::BlendMode::Coverage; 537 ALOGE_IF(error != HWC2::Error::None, "[%s] Failed to set blend mode %s:" 594 ALOGE_IF(error != HWC2::Error::None, "[%s] Failed to set display frame " 602 ALOGE_IF(error != HWC2::Error::None, "[%s] Failed to set source crop " 609 ALOGE_IF(error != HWC2::Error::None, "[%s] Failed to set plane alpha %.3f: " 614 ALOGE_IF(error != HWC2::Error::None, "[%s] Failed to set Z %u: %s (%d)", 661 auto transform = static_cast<HWC2::Transform>(orientation); 663 ALOGE_IF(error != HWC2::Error::None, "[%s] Failed to set transform %s: " 698 if (error != HWC2::Error::None) [all...] |
Android.mk | 23 DisplayHardware/HWC2.cpp \
|
SurfaceFlinger.cpp | [all...] |
/hardware/libhardware/include/hardware/ |
hwcomposer2.h | 520 namespace HWC2 { 680 } // namespace HWC2 758 * Will be provided to all HWC2 devices 784 * Will be provided to all HWC2 devices 803 * Will be provided to all HWC2 devices 830 * Must be provided by all HWC2 devices [all...] |