diff options
| author | John Reck <jreck@google.com> | 2014-03-31 18:04:06 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-03-31 18:04:06 +0000 |
| commit | 8e150fef2bb0d3e672b7ecba2caa35ee37a8c27d (patch) | |
| tree | d6eecbef1fdb7d88a345c879db177e434573a9c3 /core/java/android/view/HardwareRenderer.java | |
| parent | 877ffde5f6b5d605a0c3727f8538c8f48427fdab (diff) | |
| parent | 0d1f634f4b5e1bb37aa51777efb6a68619488d01 (diff) | |
| download | frameworks_base-8e150fef2bb0d3e672b7ecba2caa35ee37a8c27d.zip frameworks_base-8e150fef2bb0d3e672b7ecba2caa35ee37a8c27d.tar.gz frameworks_base-8e150fef2bb0d3e672b7ecba2caa35ee37a8c27d.tar.bz2 | |
Merge "Add invokeFunctor"
Diffstat (limited to 'core/java/android/view/HardwareRenderer.java')
| -rw-r--r-- | core/java/android/view/HardwareRenderer.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/view/HardwareRenderer.java b/core/java/android/view/HardwareRenderer.java index 34efcf5..4f646e1 100644 --- a/core/java/android/view/HardwareRenderer.java +++ b/core/java/android/view/HardwareRenderer.java @@ -438,6 +438,17 @@ public abstract class HardwareRenderer { abstract void attachFunctor(View.AttachInfo attachInfo, long functor); /** + * Schedules the functor for execution in either kModeProcess or + * kModeProcessNoContext, depending on whether or not there is an EGLContext. + * + * @param functor The native functor to invoke + * @param waitForCompletion If true, this will not return until the functor + * has invoked. If false, the functor may be invoked + * asynchronously. + */ + public abstract void invokeFunctor(long functor, boolean waitForCompletion); + + /** * Initializes the hardware renderer for the specified surface and setup the * renderer for drawing, if needed. This is invoked when the ViewAncestor has * potentially lost the hardware renderer. The hardware renderer should be |
