diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-08-04 11:12:40 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2010-08-11 00:29:59 -0700 |
commit | 08d5b8fad8d46ccb64db2fdcb4d66972ec87bf48 (patch) | |
tree | 7e2e67603ec8a2ca164548301b65a2b733df76a0 /native/include/android/native_window.h | |
parent | 091c5238a00ca51dc69b8b09459e6ac88e1eb077 (diff) | |
download | frameworks_base-08d5b8fad8d46ccb64db2fdcb4d66972ec87bf48.zip frameworks_base-08d5b8fad8d46ccb64db2fdcb4d66972ec87bf48.tar.gz frameworks_base-08d5b8fad8d46ccb64db2fdcb4d66972ec87bf48.tar.bz2 |
More native work.
Implement save/restore of state, and add native APIs for
configuration information.
Change-Id: I2a3ddc2ba605db58d7c8b2b31b9215fb323f90b5
Diffstat (limited to 'native/include/android/native_window.h')
-rw-r--r-- | native/include/android/native_window.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/native/include/android/native_window.h b/native/include/android/native_window.h index 7599d7e..ad03d0e 100644 --- a/native/include/android/native_window.h +++ b/native/include/android/native_window.h @@ -36,12 +36,23 @@ struct ANativeWindow; typedef struct ANativeWindow ANativeWindow; typedef struct ANativeWindow_Buffer { + // The number of pixels that are show horizontally. int32_t width; + + // The number of pixels that are shown vertically. int32_t height; + + // The number of *pixels* that a line in the buffer takes in + // memory. This may be >= width. int32_t stride; + + // The format of the buffer. One of WINDOW_FORMAT_* int32_t format; + + // The actual bits. void* bits; + // Do not touch. uint32_t reserved[6]; } ANativeWindow_Buffer; |