diff options
| author | 2011-07-13 12:57:23 -0700 | |
|---|---|---|
| committer | 2011-07-14 15:03:33 -0700 | |
| commit | 3e646d62e5b99bf479c775e88fa8324229a0670f (patch) | |
| tree | 07285a0a9307d71580ea33b747722569c3ca55fd /libs/gui/SurfaceTextureClient.cpp | |
| parent | 6a90b3a3d78b5e3b03898b6f199f22ca96040629 (diff) | |
SurfaceTexture: add support for new connect values
This change adds support to SurfaceTextureClient for the new enum values
that can be passed to the ANativeWindow connect call.
Change-Id: I8c15418909e43a15673a9b22a5eb40df6923b273
Diffstat (limited to 'libs/gui/SurfaceTextureClient.cpp')
| -rw-r--r-- | libs/gui/SurfaceTextureClient.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/gui/SurfaceTextureClient.cpp b/libs/gui/SurfaceTextureClient.cpp index b9b2310c7f..dc83412ea7 100644 --- a/libs/gui/SurfaceTextureClient.cpp +++ b/libs/gui/SurfaceTextureClient.cpp @@ -309,6 +309,9 @@ int SurfaceTextureClient::connect(int api) { int err = NO_ERROR; switch (api) { case NATIVE_WINDOW_API_EGL: + case NATIVE_WINDOW_API_CPU: + case NATIVE_WINDOW_API_MEDIA: + case NATIVE_WINDOW_API_CAMERA: if (mConnectedApi) { err = -EINVAL; } else { @@ -328,6 +331,9 @@ int SurfaceTextureClient::disconnect(int api) { int err = NO_ERROR; switch (api) { case NATIVE_WINDOW_API_EGL: + case NATIVE_WINDOW_API_CPU: + case NATIVE_WINDOW_API_MEDIA: + case NATIVE_WINDOW_API_CAMERA: if (mConnectedApi == api) { mConnectedApi = 0; } else { |