Lines Matching refs:displayDevice

1125     sp<const DisplayDevice> displayDevice(getDisplayDeviceLocked(display));
1126 if (displayDevice == nullptr) {
1127 ALOGE("getHdrCapabilities: Invalid display %p", displayDevice.get());
1134 const HdrCapabilities& capabilities = displayDevice->getHdrCapabilities();
1548 const sp<DisplayDevice>& displayDevice = mDisplays[displayId];
1550 getBE().mHwc->hasClientComposition(displayDevice->getHwcDisplayId());
1590 auto& displayDevice = mDisplays[displayId];
1591 if (!displayDevice->isDisplayOn()) {
1595 status_t result = displayDevice->prepareFrame(*getBE().mHwc);
1616 const sp<const DisplayDevice>& displayDevice(mDisplays[dpy]);
1617 if (displayDevice->isPrimary()) {
1618 hwcId = displayDevice->getHwcDisplayId();
1829 const sp<DisplayDevice>& displayDevice(mDisplays[dpy]);
1830 const Transform& tr(displayDevice->getTransform());
1831 const Rect bounds(displayDevice->getBounds());
1832 if (displayDevice->isDisplayOn()) {
1833 computeVisibleRegions(displayDevice, dirtyRegion, opaqueRegion);
1837 if (layer->belongsToDisplay(displayDevice->getLayerStack(),
1838 displayDevice->isPrimary())) {
1848 displayDevice->getHwcDisplayId());
1851 // WM changes displayDevice->layerStack upon sleep/awake.
1855 displayDevice->getHwcDisplayId());
1871 displayDevice->setVisibleLayersSortedByZ(layersSortedByZ);
1872 displayDevice->setLayersNeedingFences(layersNeedingFences);
1873 displayDevice->undefinedRegion.set(bounds);
1874 displayDevice->undefinedRegion.subtractSelf(
1876 displayDevice->dirtyRegion.orSelf(dirtyRegion);
1890 const sp<const DisplayDevice>& displayDevice, Dataspace* outHdrDataSpace) const {
1894 for (const auto& layer : displayDevice->getVisibleLayersSortedByZ()) {
1922 void SurfaceFlinger::pickColorMode(const sp<DisplayDevice>& displayDevice,
1933 Dataspace bestDataSpace = getBestDataspace(displayDevice, &hdrDataSpace);
1937 !displayDevice->hasLegacyHdrSupport(hdrDataSpace);
1956 displayDevice->getBestColorMode(bestDataSpace, intent, outDataSpace, outMode, outRenderIntent);
1996 sp<const DisplayDevice> displayDevice(mDisplays[dpy]);
1997 const auto hwcId = displayDevice->getHwcDisplayId();
2000 displayDevice->getVisibleLayersSortedByZ());
2010 layer->setGeometry(displayDevice, i);
2021 auto& displayDevice = mDisplays[displayId];
2022 const auto hwcId = displayDevice->getHwcDisplayId();
2028 displayDevice->setColorTransform(mDrawingState.colorMatrix);
2033 for (auto& layer : displayDevice->getVisibleLayersSortedByZ()) {
2038 !displayDevice->hasHDR10Support()) {
2042 !displayDevice->hasHLGSupport()) {
2052 layer->setPerFrameData(displayDevice);
2059 pickColorMode(displayDevice, &colorMode, &dataSpace, &renderIntent);
2060 setActiveColorModeInternal(displayDevice, colorMode, dataSpace, renderIntent);
2067 auto& displayDevice = mDisplays[displayId];
2068 if (!displayDevice->isDisplayOn()) {
2072 status_t result = displayDevice->prepareFrame(*getBE().mHwc);
2108 auto& displayDevice = mDisplays[displayId];
2109 if (!displayDevice->isDisplayOn()) {
2112 const auto hwcId = displayDevice->getHwcDisplayId();
2116 displayDevice->onSwapBuffersCompleted();
2117 displayDevice->makeCurrent();
2118 for (auto& layer : displayDevice->getVisibleLayersSortedByZ()) {
2132 displayDevice->getClientTargetAcquireFence());
2139 // displayDevice->getVisibleLayersSortedByZ. The best we can do is to
2141 if (!displayDevice->getLayersNeedingFences().isEmpty()) {
2143 for (auto& layer : displayDevice->getLayersNeedingFences()) {
2623 auto& displayDevice = mDisplays[displayId];
2624 if (displayDevice->getHwcDisplayId() < 0) {
2628 for (auto& layer : displayDevice->getVisibleLayersSortedByZ()) {
2629 layer->updateCursorPosition(displayDevice);
2662 void SurfaceFlinger::computeVisibleRegions(const sp<const DisplayDevice>& displayDevice,
2679 if (!layer->belongsToDisplay(displayDevice->getLayerStack(), displayDevice->isPrimary()))
2869 const sp<const DisplayDevice>& displayDevice,
2876 bool isHwcDisplay = displayDevice->getHwcDisplayId() >= 0;
2883 if (!doComposeSurfaces(displayDevice)) return;
2886 displayDevice->swapBuffers(getHwComposer());
2889 bool SurfaceFlinger::doComposeSurfaces(const sp<const DisplayDevice>& displayDevice)
2893 const Region bounds(displayDevice->bounds());
2894 const DisplayRenderArea renderArea(displayDevice);
2895 const auto hwcId = displayDevice->getHwcDisplayId();
2907 if (displayDevice->hasWideColorGamut()) {
2908 outputDataspace = displayDevice->getCompositionDataSpace();
2912 displayDevice->getHdrCapabilities().getDesiredMaxLuminance());
2924 (displayDevice->getActiveRenderIntent() >= RenderIntent::ENHANCE &&
2928 if (!displayDevice->makeCurrent()) {
2930 displayDevice->getDisplayName().string());
2952 const Region letterbox(bounds.subtract(displayDevice->getScissor()));
2955 Region region(displayDevice->undefinedRegion.merge(letterbox));
2960 drawWormhole(displayDevice, region);
2964 if (displayDevice->getDisplayType() != DisplayDevice::DISPLAY_PRIMARY) {
2968 const Rect& bounds(displayDevice->getBounds());
2969 const Rect& scissor(displayDevice->getScissor());
2976 const uint32_t height = displayDevice->getHeight();
2988 const Transform& displayTransform = displayDevice->getTransform();
2990 for (auto& layer : displayDevice->getVisibleLayersSortedByZ()) {
3048 void SurfaceFlinger::drawWormhole(const sp<const DisplayDevice>& displayDevice, const Region& region) const {
3049 const int32_t height = displayDevice->getHeight();
4111 const sp<const DisplayDevice>& displayDevice(mDisplays[d]);
4112 int32_t hwcId = displayDevice->getHwcDisplayId();
4123 ColorMode currentMode = displayDevice->getActiveColorMode();
4144 const sp<DisplayDevice>& displayDevice(mDisplays[hwcId]);
4147 resolution->set_w(displayDevice->getWidth());
4148 resolution->set_h(displayDevice->getHeight());
4150 layersProto.set_color_mode(decodeColorMode(displayDevice->getActiveColorMode()));
4151 layersProto.set_color_transform(decodeColorTransform(displayDevice->getColorTransform()));
4153 static_cast<int32_t>(displayDevice->getOrientationTransform()));
4301 const sp<const DisplayDevice>& displayDevice(mDisplays[d]);
4302 int32_t hwcId = displayDevice->getHwcDisplayId();