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 /native/include/android/native_window.h | |
parent | 8d96f19692815aa14979c811a130b38eafc1bf65 (diff) | |
download | frameworks_base-949be32b671304d5281ac0abbf30dcf4ebaa9eaf.zip frameworks_base-949be32b671304d5281ac0abbf30dcf4ebaa9eaf.tar.gz frameworks_base-949be32b671304d5281ac0abbf30dcf4ebaa9eaf.tar.bz2 |
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 'native/include/android/native_window.h')
-rw-r--r-- | native/include/android/native_window.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/native/include/android/native_window.h b/native/include/android/native_window.h index 337fa96..2f4f2d3 100644 --- a/native/include/android/native_window.h +++ b/native/include/android/native_window.h @@ -99,10 +99,16 @@ int32_t ANativeWindow_getFormat(ANativeWindow* window); * width and height must be either both zero or both non-zero. * */ -int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window, int32_t width, int32_t height, int32_t format); +int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window, + int32_t width, int32_t height, int32_t format); /** * Lock the window's next drawing surface for writing. + * inOutDirtyBounds is used as an in/out parameter, upon entering the + * function, it contains the dirty region, that is, the region the caller + * intends to redraw. When the function returns, inOutDirtyBounds is updated + * with the actual area the caller needs to redraw -- this region is often + * extended by ANativeWindow_lock. */ int32_t ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, ARect* inOutDirtyBounds); |