ANativeWindow: add query for the concrete type.

This change adds a query to the ANativeWindow interface for getting the
concrete type of the ANativeWindow.

Bug: 4086509
Change-Id: I64aa86d72fbca3b52a98e1fc35608737781a3178
This commit is contained in:
Jamie Gennis
2011-03-14 15:00:06 -07:00
committed by Android Git Automerger
parent 6d4f318f0c
commit c8bff5d9b7
6 changed files with 42 additions and 1 deletions

View File

@@ -286,6 +286,9 @@ int FramebufferNativeWindow::query(ANativeWindow* window,
case NATIVE_WINDOW_FORMAT:
*value = fb->format;
return NO_ERROR;
case NATIVE_WINDOW_CONCRETE_TYPE:
*value = NATIVE_WINDOW_FRAMEBUFFER;
return NO_ERROR;
}
*value = 0;
return BAD_VALUE;