diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-11-23 20:55:11 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2010-11-24 10:41:07 -0800 |
commit | a111187a5b4dc5d287e29ced7d65e8d20edca140 (patch) | |
tree | ddf8588ccb308b89e4d2580ec35d054483d3b656 /core/java/android | |
parent | 9fb2807e2b1f633817c0cbcb09ffbda681d06901 (diff) | |
download | frameworks_base-a111187a5b4dc5d287e29ced7d65e8d20edca140.zip frameworks_base-a111187a5b4dc5d287e29ced7d65e8d20edca140.tar.gz frameworks_base-a111187a5b4dc5d287e29ced7d65e8d20edca140.tar.bz2 |
Change rotation freeze to all be implemented in window manager.
Lots of work for no visible change in behavior, but now we can
do some fancier stuff...
Also allow rotation in all 4 directions.
Change-Id: I7e5e9537c5e359f69b83c10f65cc1ce95f371461
Diffstat (limited to 'core/java/android')
-rw-r--r-- | core/java/android/view/Surface.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/java/android/view/Surface.java b/core/java/android/view/Surface.java index d596a7f..e967522 100644 --- a/core/java/android/view/Surface.java +++ b/core/java/android/view/Surface.java @@ -374,6 +374,19 @@ public class Surface implements Parcelable { } /** + * Copy the current screen contents into a bitmap and return it. + * + * @param width The desired width of the returned bitmap; the raw + * screen will be scaled down to this size. + * @param height The desired height of the returned bitmap; the raw + * screen will be scaled down to this size. + * @return Returns a Bitmap containing the screen contents. + * + * @hide + */ + public static native Bitmap screenshot(int width, int height); + + /** * set surface parameters. * needs to be inside open/closeTransaction block */ |