Merge "Work around VSync signal while screen is off."

This commit is contained in:
Jason Sams
2012-02-17 17:20:27 -08:00
committed by Android (Google) Code Review

View File

@@ -263,6 +263,10 @@ void * Context::threadProc(void *vrsc) {
rsc->timerSet(RS_TIMER_IDLE);
#ifndef ANDROID_RS_SERIALIZE
if (!rsc->mRootScript.get() || !rsc->mHasSurface || rsc->mPaused) {
targetRate = 0;
}
if (vsyncRate != targetRate) {
displayEvent.setVsyncRate(targetRate);
vsyncRate = targetRate;