Lines Matching defs:display
188 EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
189 eglMakeCurrent(display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
190 eglTerminate(display);
221 // no more references, this display must be terminated
243 void SurfaceFlinger::destroyDisplay(const sp<IBinder>& display) {
246 ssize_t idx = mCurrentState.displays.indexOfKey(display);
248 ALOGW("destroyDisplay: invalid display token");
254 ALOGE("destroyDisplay called for non-virtual display");
264 "Overwriting display token for display type %d", type);
274 ALOGE("getDefaultDisplay: id=%d is not a valid default display id", id);
441 // initialize EGL for the default display
450 // get a RenderEngine for the given display / config (can't fail)
483 // for displays other than the main display, so we always
484 // assume a connected display is unblanked.
485 ALOGD("marking display %zu as acquired/unblanked", i);
551 status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& display,
553 if ((configs == NULL) || (display.get() == NULL)) {
557 if (!display.get())
562 if (display == mBuiltinDisplays[i]) {
572 // TODO: Not sure if display density should handled by SF any longer
657 status_t SurfaceFlinger::getDisplayStats(const sp<IBinder>& /* display */,
663 // FIXME for now we always return stats for the primary display
670 int SurfaceFlinger::getActiveConfig(const sp<IBinder>& display) {
671 sp<DisplayDevice> device(getDisplayDevice(display));
690 ALOGW("Trying to set config for virtual display");
698 status_t SurfaceFlinger::setActiveConfig(const sp<IBinder>& display, int mode) {
711 ALOGE("Attempt to set active config = %d for display with %zu configs",
716 ALOGE("Attempt to set active config = %d for null display %p",
719 ALOGW("Attempt to set active config = %d for virtual display",
727 sp<MessageBase> msg = new MessageSetActiveConfig(*this, display, mode);
1097 // - When all layers are removed from a display, we'll emit one black
1099 // - When a display is created with a private layer stack, we won't
1165 // If possible, attempt to use the cursor overlay on each display.
1235 // make the default display current because the VirtualDisplayDevice code cannot
1321 * Perform display own transactions if needed
1344 // Call makeCurrent() on the primary display so we can
1345 // be sure that nothing associated with this display
1356 ALOGW("trying to remove the main display");
1359 // this display is in both lists. see if something changed.
1361 const wp<IBinder>& display(curr.keyAt(j));
1369 sp<DisplayDevice> hw(getDisplayDevice(display));
1372 mDisplays.removeItem(display);
1379 const sp<DisplayDevice> disp(getDisplayDevice(display));
1443 "adding a supported display, but rendering "
1454 const wp<IBinder>& display(curr.keyAt(i));
1459 display, dispSurface, producer,
1465 mDisplays.add(display, hw);
1483 // (either because a display has changed, or because a layer
1489 // If a layer is visible only on a single display, then that
1490 // display is used to calculate the hint, otherwise we use the
1491 // default display.
1512 // (more than one display) if so, pick the default display,
1513 // if not, pick the only display it's on.
1532 // that is not visible on any display. Also can occur at
1787 // Display is now waiting on Layer 1's frame, which is behind layer 0's
1788 // second frame. But layer 0's second frame could be waiting on display.
1833 // We only need to actually compose the display if:
1835 // keep its virtual display state machine in sync, or
1898 ALOGW("DisplayDevice::makeCurrent failed. Aborting surface composition for display %s",
1902 ALOGE("DisplayDevice::makeCurrent on default display failed. Aborting.");
1940 // scissor on the main display. It should never be needed
2423 ALOGW("Trying to set power mode for virtual display");
2430 // FIXME: eventthread only knows about the main display right now
2442 // FIXME: eventthread only knows about the main display right now
2448 // from this point on, SF will stop drawing on this display
2454 void SurfaceFlinger::setPowerMode(const sp<IBinder>& display, int mode) {
2466 ALOGE("Attempt to set power mode = %d for null display %p",
2469 ALOGW("Attempt to set power mode = %d for virtual display",
2477 sp<MessageBase> msg = new MessageSetPowerMode(*this, display, mode);
2729 * Dump Display state
2821 ALOGE("getLayerSortedByZForHwcDisplay: invalid hwc display id %d", id);
2822 // Just use the primary display so we have something to return
3131 status_t SurfaceFlinger::captureScreen(const sp<IBinder>& display,
3137 if (CC_UNLIKELY(display == 0))
3143 // if we have secure windows on this display, never allow the screen capture
3148 sp<const DisplayDevice> hw(getDisplayDevice(display));
3178 sp<IBinder> display;
3188 const sp<IBinder>& display,
3193 : flinger(flinger), display(display), producer(producer),
3206 sp<const DisplayDevice> hw(flinger->getDisplayDevice(display));
3230 display, IGraphicBufferProducer::asInterface( wrapper ),