diff options
| author | 2012-09-17 18:32:40 -0700 | |
|---|---|---|
| committer | 2012-09-17 18:32:40 -0700 | |
| commit | 3bcbad7bcbc4c556a3550f40a3ba85876db7e7d8 (patch) | |
| tree | 47b6c612a68efaad262fc7c4b04a7cb7613610cd | |
| parent | 5dbeb6a8ff8ae30f59ba8335c2354b883302428e (diff) | |
Plumb display name into SurfaceFlinger
Pass the display name into SF's createDisplay().
Bug 7058158
Change-Id: Ia21f07063db2c2fb5a34d6526e16d4b2d3694377
| -rw-r--r-- | core/jni/android_view_Surface.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/jni/android_view_Surface.cpp b/core/jni/android_view_Surface.cpp index 90e85e64d88b..fc04cd19c4bf 100644 --- a/core/jni/android_view_Surface.cpp +++ b/core/jni/android_view_Surface.cpp @@ -650,8 +650,7 @@ static jobject nativeGetBuiltInDisplay(JNIEnv* env, jclass clazz, jint id) { static jobject nativeCreateDisplay(JNIEnv* env, jclass clazz, jstring nameObj) { ScopedUtfChars name(env, nameObj); - // TODO: pass the name to SF. - sp<IBinder> token(SurfaceComposerClient::createDisplay()); + sp<IBinder> token(SurfaceComposerClient::createDisplay(String8(name.c_str()))); return javaObjectForIBinder(env, token); } |