Home | History | Annotate | Download | only in surfaceflinger

Lines Matching full:hwcid

382 bool Layer::createHwcLayer(HWComposer* hwc, int32_t hwcId) {
383 LOG_ALWAYS_FATAL_IF(mHwcLayers.count(hwcId) != 0,
384 "Already have a layer for hwcId %d", hwcId);
385 HWC2::Layer* layer = hwc->createLayer(hwcId);
389 HWCInfo& hwcInfo = mHwcLayers[hwcId];
393 [this, hwcId] (HWC2::Layer* /*layer*/){mHwcLayers.erase(hwcId);});
397 void Layer::destroyHwcLayer(int32_t hwcId) {
398 if (mHwcLayers.count(hwcId) == 0) {
401 auto& hwcInfo = mHwcLayers[hwcId];
405 hwcInfo.hwc->destroyLayer(hwcId, hwcInfo.layer);
408 LOG_ALWAYS_FATAL_IF(mHwcLayers.count(hwcId) != 0,
649 const auto hwcId = displayDevice->getHwcDisplayId();
650 auto& hwcInfo = mHwcLayers[hwcId];
849 void Layer::forceClientComposition(int32_t hwcId) {
850 if (mHwcLayers.count(hwcId) == 0) {
851 ALOGE("forceClientComposition: no HWC layer found (%d)", hwcId);
855 mHwcLayers[hwcId].forceClientComposition = true;
864 auto hwcId = displayDevice->getHwcDisplayId();
865 auto& hwcInfo = mHwcLayers[hwcId];
883 setCompositionType(hwcId, HWC2::Composition::Sideband);
898 setCompositionType(hwcId, HWC2::Composition::Client);
904 setCompositionType(hwcId, HWC2::Composition::SolidColor);
927 setCompositionType(hwcId, HWC2::Composition::Cursor);
930 setCompositionType(hwcId, HWC2::Composition::Device);
981 auto hwcId = displayDevice->getHwcDisplayId();
982 if (mHwcLayers.count(hwcId) == 0 ||
983 getCompositionType(hwcId) != HWC2::Composition::Cursor) {
1006 auto error = mHwcLayers[hwcId].layer->setCursorPosition(position.left,
1265 void Layer::setCompositionType(int32_t hwcId, HWC2::Composition type,
1267 if (mHwcLayers.count(hwcId) == 0) {
1271 auto& hwcInfo = mHwcLayers[hwcId];
1288 HWC2::Composition Layer::getCompositionType(int32_t hwcId) const {
1289 if (hwcId == DisplayDevice::DISPLAY_ID_INVALID) {
1294 if (mHwcLayers.count(hwcId) == 0) {
1298 return mHwcLayers.at(hwcId).compositionType;
1301 void Layer::setClearClientTarget(int32_t hwcId, bool clear) {
1302 if (mHwcLayers.count(hwcId) == 0) {
1306 mHwcLayers[hwcId].clearClientTarget = clear;
1309 bool Layer::getClearClientTarget(int32_t hwcId) const {
1310 if (mHwcLayers.count(hwcId) == 0) {
1314 return mHwcLayers.at(hwcId).clearClientTarget;
2501 void Layer::miniDump(String8& result, int32_t hwcId) const {
2502 if (mHwcLayers.count(hwcId) == 0) {
2520 const HWCInfo& hwcInfo = mHwcLayers.at(hwcId);
2523 to_string(getCompositionType(hwcId)).c_str());