diff options
| author | Mathias Agopian <mathias@google.com> | 2009-08-13 17:29:02 -0700 |
|---|---|---|
| committer | Jean-Baptiste Queru <jbq@google.com> | 2009-08-13 18:19:32 -0700 |
| commit | 317a6280cc109e873646e4652be1582d870eedfd (patch) | |
| tree | 3b6d41d465282970f498e172b81ed0ee83e3183e /core/java/android/view/SurfaceView.java | |
| parent | 81655243a6a373cfde1e689970eeb62af19622d1 (diff) | |
Surface::GPU and Surface::HARDWARE are now deprecated; they will be set automatically if needed.
this also ripples into the window manager API by making some constant there deprecated as well.
Diffstat (limited to 'core/java/android/view/SurfaceView.java')
| -rw-r--r-- | core/java/android/view/SurfaceView.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/java/android/view/SurfaceView.java b/core/java/android/view/SurfaceView.java index 4840f2788123..3b649450cc69 100644 --- a/core/java/android/view/SurfaceView.java +++ b/core/java/android/view/SurfaceView.java @@ -573,9 +573,14 @@ public class SurfaceView extends View { public void setType(int type) { switch (type) { - case SURFACE_TYPE_NORMAL: case SURFACE_TYPE_HARDWARE: case SURFACE_TYPE_GPU: + // these are deprecated, treat as "NORMAL" + type = SURFACE_TYPE_NORMAL; + break; + } + switch (type) { + case SURFACE_TYPE_NORMAL: case SURFACE_TYPE_PUSH_BUFFERS: mRequestedType = type; if (mWindow != null) { |
