diff options
| author | Mathias Agopian <mathias@google.com> | 2011-04-20 14:20:59 -0700 |
|---|---|---|
| committer | Mathias Agopian <mathias@google.com> | 2011-05-11 18:01:51 -0700 |
| commit | ed3894c07a67b3e35d07084c4a8b410908bfedc5 (patch) | |
| tree | d6be3a0f844843e230bf10e285896d3a6336e167 /include/gui/ISurfaceTexture.h | |
| parent | 0297dcae8fddb18ab9e28ba1858a57a8aec3ef32 (diff) | |
| download | frameworks_base-ed3894c07a67b3e35d07084c4a8b410908bfedc5.zip frameworks_base-ed3894c07a67b3e35d07084c4a8b410908bfedc5.tar.gz frameworks_base-ed3894c07a67b3e35d07084c4a8b410908bfedc5.tar.bz2 | |
unify SurfaceTexture and Surface
Change-Id: I49da2f5d8408e4cd7e148cfb777bb4ff68cd8f37
Diffstat (limited to 'include/gui/ISurfaceTexture.h')
| -rw-r--r-- | include/gui/ISurfaceTexture.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/gui/ISurfaceTexture.h b/include/gui/ISurfaceTexture.h index 2398e0e..99aa1ad 100644 --- a/include/gui/ISurfaceTexture.h +++ b/include/gui/ISurfaceTexture.h @@ -31,11 +31,16 @@ namespace android { // ---------------------------------------------------------------------------- +class SurfaceTextureClient; + class ISurfaceTexture : public IInterface { public: DECLARE_META_INTERFACE(SurfaceTexture); +protected: + friend class SurfaceTextureClient; + enum { BUFFER_NEEDS_REALLOCATION = 1 }; // requestBuffer requests a new buffer for the given index. The server (i.e. @@ -85,6 +90,10 @@ public: // Holding this binder reference prevents SurfaceFlinger from freeing the // buffers before the client is done with them. virtual sp<IBinder> getAllocator() = 0; + + // query retrieves some information for this surface + // 'what' tokens allowed are that of android_natives.h + virtual int query(int what, int* value) = 0; }; // ---------------------------------------------------------------------------- |
