From ae738a7a45d710115f8aedacf218d4bfa0b25698 Mon Sep 17 00:00:00 2001 From: Bo Liu Date: Sun, 27 Apr 2014 16:22:04 -0700 Subject: Add invokeFunctor call to ViewRootImpl BUG: 13961296 Change-Id: Ief8eea0b4c79a64ea76d75daaec176f1b8438581 --- core/java/android/view/ViewRootImpl.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/java/android/view/ViewRootImpl.java') diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index 246905d..5a48a9a 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -678,6 +678,14 @@ public final class ViewRootImpl implements ViewParent, } } + public boolean invokeFunctor(long functor, boolean waitForCompletion) { + if (mAttachInfo.mHardwareRenderer == null || !mAttachInfo.mHardwareRenderer.isEnabled()) { + return false; + } + mAttachInfo.mHardwareRenderer.invokeFunctor(functor, waitForCompletion); + return true; + } + private void enableHardwareAcceleration(WindowManager.LayoutParams attrs) { mAttachInfo.mHardwareAccelerated = false; mAttachInfo.mHardwareAccelerationRequested = false; -- cgit v1.1