diff options
author | Mathias Agopian <mathias@google.com> | 2011-07-13 17:39:11 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-07-15 17:47:08 -0700 |
commit | 949be32b671304d5281ac0abbf30dcf4ebaa9eaf (patch) | |
tree | f12cbc9997bd2270f1a7604ba4d78739688975c3 /libs/ui/FramebufferNativeWindow.cpp | |
parent | 8d96f19692815aa14979c811a130b38eafc1bf65 (diff) |
move lock/unlock implementaion outside of Surface into SurfaceTextureClient
This makes ANativeWindow_lock/ANativeWindow_unlockAndPost work
with ANativeWindows implemented by Surface and SurfaceTextureClient.
Also, Surface now inherits directly from SurfaceTextureClient.
Bug: 5003724
Change-Id: I9f285877c7bae9a262e9a7af91c2bae78804b2ef
Diffstat (limited to 'libs/ui/FramebufferNativeWindow.cpp')
-rw-r--r-- | libs/ui/FramebufferNativeWindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ui/FramebufferNativeWindow.cpp b/libs/ui/FramebufferNativeWindow.cpp index 9c10c754ba0a..794747d654f2 100644 --- a/libs/ui/FramebufferNativeWindow.cpp +++ b/libs/ui/FramebufferNativeWindow.cpp @@ -303,6 +303,10 @@ int FramebufferNativeWindow::perform(ANativeWindow* window, case NATIVE_WINDOW_CONNECT: case NATIVE_WINDOW_DISCONNECT: break; + case NATIVE_WINDOW_LOCK: + return INVALID_OPERATION; + case NATIVE_WINDOW_UNLOCK_AND_POST: + return INVALID_OPERATION; default: return NAME_NOT_FOUND; } |