summaryrefslogtreecommitdiffstats
path: root/core/jni/android_view_GLES20Canvas.cpp
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2011-11-10 19:23:58 -0800
committerRomain Guy <romainguy@google.com>2011-11-10 19:23:58 -0800
commitda96f8ac2c1c35a54f3f36e6d776cb386a251d03 (patch)
tree646abfdfeee4346b422943924182162f4a3cdf84 /core/jni/android_view_GLES20Canvas.cpp
parent50a66f0e9c5a85a6af4a99eb66656a69eba24572 (diff)
downloadframeworks_base-da96f8ac2c1c35a54f3f36e6d776cb386a251d03.zip
frameworks_base-da96f8ac2c1c35a54f3f36e6d776cb386a251d03.tar.gz
frameworks_base-da96f8ac2c1c35a54f3f36e6d776cb386a251d03.tar.bz2
Discard framebuffer rendering queues when discarding layers
Bug #5581817 Change-Id: If612846ec5f7793710fc4df152791fb32c506551
Diffstat (limited to 'core/jni/android_view_GLES20Canvas.cpp')
-rw-r--r--core/jni/android_view_GLES20Canvas.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/jni/android_view_GLES20Canvas.cpp b/core/jni/android_view_GLES20Canvas.cpp
index 4f75fad..78b8e8e 100644
--- a/core/jni/android_view_GLES20Canvas.cpp
+++ b/core/jni/android_view_GLES20Canvas.cpp
@@ -718,6 +718,10 @@ static void android_view_GLES20Canvas_destroyLayerDeferred(JNIEnv* env,
LayerRenderer::destroyLayerDeferred(layer);
}
+static void android_view_GLES20Canvas_flushLayer(JNIEnv* env, jobject clazz, Layer* layer) {
+ LayerRenderer::flushLayer(layer);
+}
+
static void android_view_GLES20Canvas_drawLayer(JNIEnv* env, jobject clazz,
OpenGLRenderer* renderer, Layer* layer, jfloat x, jfloat y, SkPaint* paint) {
renderer->drawLayer(layer, x, y, paint);
@@ -860,6 +864,7 @@ static JNINativeMethod gMethods[] = {
{ "nSetTextureLayerTransform", "(II)V", (void*) android_view_GLES20Canvas_setTextureLayerTransform },
{ "nDestroyLayer", "(I)V", (void*) android_view_GLES20Canvas_destroyLayer },
{ "nDestroyLayerDeferred", "(I)V", (void*) android_view_GLES20Canvas_destroyLayerDeferred },
+ { "nFlushLayer", "(I)V", (void*) android_view_GLES20Canvas_flushLayer },
{ "nDrawLayer", "(IIFFI)V", (void*) android_view_GLES20Canvas_drawLayer },
{ "nCopyLayer", "(II)Z", (void*) android_view_GLES20Canvas_copyLayer },