diff options
author | John Reck <jreck@google.com> | 2014-05-28 16:02:06 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-05-28 16:02:06 +0000 |
commit | 45d01929291eba56e1bce582192941446b86bf5a (patch) | |
tree | f8afff902e21c27d6e3e0858765f83e86322f143 /core/jni | |
parent | 10f6de686e68c6cbb7bed8c9550ea5f43c19d104 (diff) | |
parent | e1628b7c6fc3822fa83cf02028ce8ad67abb0afe (diff) | |
download | frameworks_base-45d01929291eba56e1bce582192941446b86bf5a.zip frameworks_base-45d01929291eba56e1bce582192941446b86bf5a.tar.gz frameworks_base-45d01929291eba56e1bce582192941446b86bf5a.tar.bz2 |
Merge "Implement FlushCaches TODO" 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 5bc0f62..6f256f0 100644 --- a/core/jni/android_view_ThreadedRenderer.cpp +++ b/core/jni/android_view_ThreadedRenderer.cpp @@ -293,6 +293,12 @@ static void android_view_ThreadedRenderer_destroyLayer(JNIEnv* env, jobject claz proxy->destroyLayer(layer); } +static void android_view_ThreadedRenderer_flushCaches(JNIEnv* env, jobject clazz, + jlong proxyPtr, jint flushMode) { + RenderProxy* proxy = reinterpret_cast<RenderProxy*>(proxyPtr); + proxy->flushCaches(static_cast<Caches::FlushMode>(flushMode)); +} + static void android_view_ThreadedRenderer_fence(JNIEnv* env, jobject clazz, jlong proxyPtr) { RenderProxy* proxy = reinterpret_cast<RenderProxy*>(proxyPtr); @@ -334,6 +340,7 @@ static JNINativeMethod gMethods[] = { { "nCreateTextureLayer", "(J)J", (void*) android_view_ThreadedRenderer_createTextureLayer }, { "nCopyLayerInto", "(JJJ)Z", (void*) android_view_ThreadedRenderer_copyLayerInto }, { "nDestroyLayer", "(JJ)V", (void*) android_view_ThreadedRenderer_destroyLayer }, + { "nFlushCaches", "(JI)V", (void*) android_view_ThreadedRenderer_flushCaches }, { "nFence", "(J)V", (void*) android_view_ThreadedRenderer_fence }, { "nNotifyFramePending", "(J)V", (void*) android_view_ThreadedRenderer_notifyFramePending }, #endif |