diff options
author | John Reck <jreck@google.com> | 2014-05-23 20:43:36 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-05-23 20:43:36 +0000 |
commit | 4967c183082ee45e2637e3280de542f791fb03bd (patch) | |
tree | 218d03246badd26a083aef1112786f9b82951ff7 /core/jni | |
parent | db67ffd62bc0dda9a064a6ae83c40dc9dafd9956 (diff) | |
parent | a5dda645da738da7b4ae15e28fa7d93d3b04b94f (diff) | |
download | frameworks_base-4967c183082ee45e2637e3280de542f791fb03bd.zip frameworks_base-4967c183082ee45e2637e3280de542f791fb03bd.tar.gz frameworks_base-4967c183082ee45e2637e3280de542f791fb03bd.tar.bz2 |
Merge "Bag of scheduling tweaks" into lmp-preview-dev
Diffstat (limited to 'core/jni')
-rw-r--r-- | core/jni/android_view_ThreadedRenderer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/jni/android_view_ThreadedRenderer.cpp b/core/jni/android_view_ThreadedRenderer.cpp index 48fb729..5bc0f62 100644 --- a/core/jni/android_view_ThreadedRenderer.cpp +++ b/core/jni/android_view_ThreadedRenderer.cpp @@ -299,6 +299,12 @@ static void android_view_ThreadedRenderer_fence(JNIEnv* env, jobject clazz, proxy->fence(); } +static void android_view_ThreadedRenderer_notifyFramePending(JNIEnv* env, jobject clazz, + jlong proxyPtr) { + RenderProxy* proxy = reinterpret_cast<RenderProxy*>(proxyPtr); + proxy->notifyFramePending(); +} + #endif // ---------------------------------------------------------------------------- @@ -329,6 +335,7 @@ static JNINativeMethod gMethods[] = { { "nCopyLayerInto", "(JJJ)Z", (void*) android_view_ThreadedRenderer_copyLayerInto }, { "nDestroyLayer", "(JJ)V", (void*) android_view_ThreadedRenderer_destroyLayer }, { "nFence", "(J)V", (void*) android_view_ThreadedRenderer_fence }, + { "nNotifyFramePending", "(J)V", (void*) android_view_ThreadedRenderer_notifyFramePending }, #endif }; |