don't call eglMakeCurrent() before calling HWC commit() on HWC 1.1
this call is not needed and misleading on HWC 1.1; it can also have a negative performance impact when multiple displays are used. Bug: 7124069 Change-Id: I47cd25c9d6e69abcc9333b9ecd5044e8fb1919ec
This commit is contained in:
parent
52e21483fa
commit
2a23184e41
@ -927,10 +927,13 @@ void SurfaceFlinger::postFramebuffer()
|
|||||||
|
|
||||||
HWComposer& hwc(getHwComposer());
|
HWComposer& hwc(getHwComposer());
|
||||||
if (hwc.initCheck() == NO_ERROR) {
|
if (hwc.initCheck() == NO_ERROR) {
|
||||||
// FIXME: EGL spec says:
|
if (!hwc.supportsFramebufferTarget()) {
|
||||||
// "surface must be bound to the calling thread's current context,
|
// EGL spec says:
|
||||||
// for the current rendering API."
|
// "surface must be bound to the calling thread's current context,
|
||||||
DisplayDevice::makeCurrent(mEGLDisplay, getDefaultDisplayDevice(), mEGLContext);
|
// for the current rendering API."
|
||||||
|
DisplayDevice::makeCurrent(mEGLDisplay,
|
||||||
|
getDefaultDisplayDevice(), mEGLContext);
|
||||||
|
}
|
||||||
hwc.commit();
|
hwc.commit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user