Lines Matching defs:Layer
129 class Layer;
133 bool operator()(const std::shared_ptr<Layer>& lhs,
134 const std::shared_ptr<Layer>& rhs);
327 // - Layer composition type.
328 // - Layer hints.
375 // prepare/set array and Layer object. Stores mapping in
376 // mHwc1LayerMap and also updates Layer's attribute mHwc1Id.
382 const Layer& layer);
387 const Layer& layer);
446 std::multiset<std::shared_ptr<Layer>, SortLayersByZ> mLayers;
449 // passed to HWC1 during validate/set and Layer object.
450 std::unordered_map<size_t, std::shared_ptr<Layer>> mHwc1LayerMap;
524 class Layer {
526 explicit Layer(Display& display);
528 bool operator==(const Layer& other) { return mId == other.mId; }
529 bool operator!=(const Layer& other) { return !(*this == other); }
534 // HWC2 Layer functions
539 // HWC2 Layer state functions
610 // Utility tempate calling a Layer object method based on ID parameters:
617 HWC2::Error (Layer::*member)(Args...), Args... args) {
621 auto layer = std::get<Layer*>(result);
634 // Layer state functions
640 &Layer::setBlendMode, mode);
647 &Layer::setCompositionType, type);
653 return callLayerFunction(device, display, layer, &Layer::setDataspace,
660 return callLayerFunction(device, display, layer, &Layer::setTransform,
674 std::tuple<Layer*, HWC2::Error> getLayer(hwc2_display_t displayId,
703 std::map<hwc2_layer_t, std::shared_ptr<Layer>> mLayers;