implement connect/disconnect in our native_window_t implementations

the framebuffer implementation doesn't do anything special with this
but the surfaceflinger implementation makes sure the surface is not used
by two APIs simultaneously.

Change-Id: Id4ca8ef7093d68846abc2ac814327cc40a64b66b
This commit is contained in:
Mathias Agopian
2010-03-11 15:06:54 -08:00
parent f6331a4974
commit 2f7540e78f
3 changed files with 92 additions and 7 deletions

View File

@@ -250,6 +250,8 @@ int FramebufferNativeWindow::perform(android_native_window_t* window,
{
switch (operation) {
case NATIVE_WINDOW_SET_USAGE:
case NATIVE_WINDOW_CONNECT:
case NATIVE_WINDOW_DISCONNECT:
break;
default:
return NAME_NOT_FOUND;