diff options
author | 2011-03-14 15:00:06 -0700 | |
---|---|---|
committer | 2011-03-14 17:47:11 -0700 | |
commit | 391bbe2246a7547dbf3460c231b3c5ba691d4eb1 (patch) | |
tree | 8d317a053869691449a9a6fa8f97e79c0b42589a /libs/ui/FramebufferNativeWindow.cpp | |
parent | 827ebdbbffb41aa390494e1ea8e7aeda786b3bb5 (diff) |
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
Diffstat (limited to 'libs/ui/FramebufferNativeWindow.cpp')
-rw-r--r-- | libs/ui/FramebufferNativeWindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/ui/FramebufferNativeWindow.cpp b/libs/ui/FramebufferNativeWindow.cpp index 0702d49667..dc223f9645 100644 --- a/libs/ui/FramebufferNativeWindow.cpp +++ b/libs/ui/FramebufferNativeWindow.cpp @@ -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; |