Lines Matching refs:HWC2
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();
190 HWC2::Error createLayer(hwc2_layer_t* outLayerId);
191 HWC2::Error destroyLayer(hwc2_layer_t layerId);
192 HWC2::Error getActiveConfig(hwc2_config_t* outConfigId);
193 HWC2::Error getAttribute(hwc2_config_t configId,
194 HWC2::Attribute attribute, int32_t* outValue);
195 HWC2::Error getChangedCompositionTypes(uint32_t* outNumElements,
197 HWC2::Error getColorModes(uint32_t* outNumModes, int32_t* outModes);
198 HWC2::Error getConfigs(uint32_t* outNumConfigs,
200 HWC2::Error getDozeSupport(int32_t* outSupport);
201 HWC2::Error getHdrCapabilities(uint32_t* outNumTypes,
204 HWC2::Error getName(uint32_t* outSize, char* outName);
205 HWC2::Error getReleaseFences(uint32_t* outNumElements,
207 HWC2::Error getRequests(int32_t* outDisplayRequests,
210 HWC2::Error getType(int32_t* outType);
211 HWC2::Error present(int32_t* outRetireFence);
212 HWC2::Error setActiveConfig(hwc2_config_t configId);
213 HWC2::Error setClientTarget(buffer_handle_t target,
216 HWC2::Error setColorMode(android_color_mode_t mode);
217 HWC2::Error setColorTransform(android_color_transform_t hint);
218 HWC2::Error setOutputBuffer(buffer_handle_t buffer,
220 HWC2::Error setPowerMode(HWC2::PowerMode mode);
221 HWC2::Error setVsyncEnabled(HWC2::Vsync enabled);
222 HWC2::Error validate(uint32_t* outNumTypes,
225 HWC2::Error updateLayerZ(hwc2_layer_t layerId, uint32_t z);
237 HWC2::Error set(hwc_display_contents_1& hwcContents);
256 void setAttribute(HWC2::Attribute attribute, int32_t value);
257 int32_t getAttribute(HWC2::Attribute attribute) const;
261 HWC2::Error getColorModeForHwc1Id(uint32_t id,
263 HWC2::Error getHwc1IdForColorMode(android_color_mode_t mode,
282 std::unordered_map<HWC2::Attribute, int32_t> mAttributes;
298 const std::unordered_map<hwc2_layer_t, HWC2::Composition>&
303 const std::unordered_map<hwc2_layer_t, HWC2::LayerRequest>&
317 HWC2::Composition type) {
324 HWC2::LayerRequest request) {
329 std::unordered_map<hwc2_layer_t, HWC2::Composition>
331 std::unordered_map<hwc2_layer_t, HWC2::LayerRequest>
333 std::unordered_set<HWC2::DisplayRequest> mDisplayRequests;
385 HWC2::DisplayType mType;
386 HWC2::PowerMode mPowerMode;
387 HWC2::Vsync mVsyncEnabled;
400 hwc2_display_t displayId, HWC2::Error (Display::*member)(Args...),
404 return static_cast<int32_t>(HWC2::Error::BadDisplay);
420 auto attribute = static_cast<HWC2::Attribute>(intAttribute);
444 auto mode = static_cast<HWC2::PowerMode>(intMode);
451 auto enabled = static_cast<HWC2::Vsync>(intEnabled);
510 // HWC2 Layer functions
511 HWC2::Error setBuffer(buffer_handle_t buffer, int32_t acquireFence);
512 HWC2::Error setCursorPosition(int32_t x, int32_t y);
513 HWC2::Error setSurfaceDamage(hwc_region_t damage);
515 // HWC2 Layer state functions
516 HWC2::Error setBlendMode(HWC2::BlendMode mode);
517 HWC2::Error setColor(hwc_color_t color);
518 HWC2::Error setCompositionType(HWC2::Composition type);
519 HWC2::Error setDataspace(android_dataspace_t dataspace);
520 HWC2::Error setDisplayFrame(hwc_rect_t frame);
521 HWC2::Error setPlaneAlpha(float alpha);
522 HWC2::Error setSidebandStream(const native_handle_t* stream);
523 HWC2::Error setSourceCrop(hwc_frect_t crop);
524 HWC2::Error setTransform(HWC2::Transform transform);
525 HWC2::Error setVisibleRegion(hwc_region_t visible);
526 HWC2::Error setZ(uint32_t z);
528 HWC2::Composition getCompositionType() const {
562 LatchedState<HWC2::BlendMode> mBlendMode;
564 LatchedState<HWC2::Composition> mCompositionType;
569 LatchedState<HWC2::Transform> mTransform;
583 HWC2::Error (Layer::*member)(Args...), Args... args) {
585 auto error = std::get<HWC2::Error>(result);
586 if (error == HWC2::Error::None) {
604 auto mode = static_cast<HWC2::BlendMode>(intMode);
611 auto type = static_cast<HWC2::Composition>(intType);
625 auto transform = static_cast<HWC2::Transform>(intTransform);
640 std::tuple<Layer*, HWC2::Error> getLayer(hwc2_display_t displayId,
646 HWC2::Error setAllDisplays();
662 std::unordered_set<HWC2::Capability> mCapabilities;
680 std::unordered_map<HWC2::Callback, CallbackInfo> mCallbacks;