summaryrefslogtreecommitdiff
path: root/core/java/android/view/WindowManager.java
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-12-07 19:38:17 -0800
committerMathias Agopian <mathias@google.com>2010-12-08 16:13:59 -0800
commitd2112306330ce0c162bee4b864991962ca2b655a (patch)
treed169f93867e853220c40d38826fe81b4a1ad9eff /core/java/android/view/WindowManager.java
parentff3c470778a69d262470e9707fce58dd485c6cc9 (diff)
remove support for PUSH_BUFFER surfaces and overlays
the same functionality is now supported through the h/w composer HAL, and YUV support in the GPU. Change-Id: I8146605449954b8e8fd7f78810b7d873c2d8f5bf
Diffstat (limited to 'core/java/android/view/WindowManager.java')
-rw-r--r--core/java/android/view/WindowManager.java31
1 files changed, 8 insertions, 23 deletions
diff --git a/core/java/android/view/WindowManager.java b/core/java/android/view/WindowManager.java
index 51016f5cc6f0..e8792ff64608 100644
--- a/core/java/android/view/WindowManager.java
+++ b/core/java/android/view/WindowManager.java
@@ -388,31 +388,22 @@ public interface WindowManager extends ViewManager {
public static final int LAST_SYSTEM_WINDOW = 2999;
/**
- * Specifies what type of memory buffers should be used by this window.
- * Default is normal.
- *
- * @see #MEMORY_TYPE_NORMAL
- * @see #MEMORY_TYPE_PUSH_BUFFERS
+ * @deprecated this is ignored
*/
+ @Deprecated
public int memoryType;
- /** Memory type: The window's surface is allocated in main memory. */
+ /** @deprecated this is ignored, this value is set automatically when needed. */
+ @Deprecated
public static final int MEMORY_TYPE_NORMAL = 0;
- /** Memory type: The window's surface is configured to be accessible
- * by DMA engines and hardware accelerators.
- * @deprecated this is ignored, this value is set automatically when needed.
- */
+ /** @deprecated this is ignored, this value is set automatically when needed. */
@Deprecated
public static final int MEMORY_TYPE_HARDWARE = 1;
- /** Memory type: The window's surface is configured to be accessible
- * by graphics accelerators.
- * @deprecated this is ignored, this value is set automatically when needed.
- */
+ /** @deprecated this is ignored, this value is set automatically when needed. */
@Deprecated
public static final int MEMORY_TYPE_GPU = 2;
- /** Memory type: The window's surface doesn't own its buffers and
- * therefore cannot be locked. Instead the buffers are pushed to
- * it through native binder calls. */
+ /** @deprecated this is ignored, this value is set automatically when needed. */
+ @Deprecated
public static final int MEMORY_TYPE_PUSH_BUFFERS = 3;
/**
@@ -994,7 +985,6 @@ public interface WindowManager extends ViewManager {
out.writeInt(x);
out.writeInt(y);
out.writeInt(type);
- out.writeInt(memoryType);
out.writeInt(flags);
out.writeInt(softInputMode);
out.writeInt(gravity);
@@ -1030,7 +1020,6 @@ public interface WindowManager extends ViewManager {
x = in.readInt();
y = in.readInt();
type = in.readInt();
- memoryType = in.readInt();
flags = in.readInt();
softInputMode = in.readInt();
gravity = in.readInt();
@@ -1106,10 +1095,6 @@ public interface WindowManager extends ViewManager {
type = o.type;
changes |= TYPE_CHANGED;
}
- if (memoryType != o.memoryType) {
- memoryType = o.memoryType;
- changes |= MEMORY_TYPE_CHANGED;
- }
if (flags != o.flags) {
flags = o.flags;
changes |= FLAGS_CHANGED;