diff options
author | Jamie Gennis <jgennis@google.com> | 2011-03-14 15:00:06 -0700 |
---|---|---|
committer | Jamie Gennis <jgennis@google.com> | 2011-03-14 17:47:11 -0700 |
commit | c4ca7c511499693f13622b135637f600ec913e57 (patch) | |
tree | 10256c7257fc9c93ee4d53f8cdba2386d7b9a9e6 /libs/ui/FramebufferNativeWindow.cpp | |
parent | 122dd0999f09eedbe42e619b64276633bea60e6a (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 0702d4966796..dc223f96453a 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; |