Remove incorrect isEnabled() check

Bug: 15683945

 invokeFunctor() does not require isEnabled() to be true
 to execute. Specifically it does not care if HardwareRenderer
 has a Surface or not, as it will fall back to a pbuffer surface
 if available. If there is no context at all, it will invoke
 with kModeProcessNoContext.

Change-Id: Ie6abe566b92c8fa33bb7a673fc3b9fa9ce913446
This commit is contained in:
John Reck
2014-06-17 08:59:48 -07:00
parent 2995606963
commit 9d7ee60e5e

View File

@@ -656,7 +656,7 @@ public final class ViewRootImpl implements ViewParent,
}
public boolean invokeFunctor(long functor, boolean waitForCompletion) {
if (mAttachInfo.mHardwareRenderer == null || !mAttachInfo.mHardwareRenderer.isEnabled()) {
if (mAttachInfo.mHardwareRenderer == null) {
return false;
}
mAttachInfo.mHardwareRenderer.invokeFunctor(functor, waitForCompletion);