diff options
author | Mathias Agopian <mathias@google.com> | 2013-02-11 22:08:48 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2013-02-14 12:19:11 -0800 |
commit | 3866f0d581ceaa165710feeee9f37fe1b0d7067d (patch) | |
tree | b3469b8b6dc7fa4d92afa97297947d2fb5ec9e1b /packages/SystemUI/src/com/android/systemui/screenshot | |
parent | f9136fd9692158574d187af8d4031fa4b1e2b6e6 (diff) | |
download | frameworks_base-3866f0d581ceaa165710feeee9f37fe1b0d7067d.zip frameworks_base-3866f0d581ceaa165710feeee9f37fe1b0d7067d.tar.gz frameworks_base-3866f0d581ceaa165710feeee9f37fe1b0d7067d.tar.bz2 |
split Surface in two classes: SurfaceControl and Surface
SurfaceControl is the window manager side; it can
control the attributes of a surface but cannot push buffers
to it. Surface on the other hand is the application (producer)
side and is used to push buffers to the surface.
Change-Id: Ib6754c968924e87e8dd02a2073c7a447f729f4dd
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/screenshot')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java b/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java index ddfaad5..b498368 100644 --- a/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java +++ b/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java @@ -50,6 +50,7 @@ import android.view.Display; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.Surface; +import android.view.SurfaceControl; import android.view.View; import android.view.ViewGroup; import android.view.WindowManager; @@ -455,7 +456,7 @@ class GlobalScreenshot { } // Take the screenshot - mScreenBitmap = Surface.screenshot((int) dims[0], (int) dims[1]); + mScreenBitmap = SurfaceControl.screenshot((int) dims[0], (int) dims[1]); if (mScreenBitmap == null) { notifyScreenshotError(mContext, mNotificationManager); finisher.run(); |