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:
committed by
Android Git Automerger
parent
6d4f318f0c
commit
c8bff5d9b7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user