am 9bfb060a: Merge "Force wallpaper surface to 565." into gingerbread

Merge commit '9bfb060ac4e30c82ec2c269b78cc758a6cb5daf8' into gingerbread-plus-aosp

* commit '9bfb060ac4e30c82ec2c269b78cc758a6cb5daf8':
  Force wallpaper surface to 565.
This commit is contained in:
Mathias Agopian
2010-09-08 16:46:46 -07:00
committed by Android Git Automerger
2 changed files with 6 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.Configuration;
import android.graphics.PixelFormat;
import android.graphics.Rect;
import android.os.Bundle;
import android.os.IBinder;
@@ -178,6 +179,9 @@ public abstract class WallpaperService extends Service {
};
final BaseSurfaceHolder mSurfaceHolder = new BaseSurfaceHolder() {
{
mRequestedFormat = PixelFormat.RGB_565;
}
@Override
public boolean onAllowLockCanvas() {

View File

@@ -41,7 +41,8 @@ public abstract class BaseSurfaceHolder implements SurfaceHolder {
int mRequestedWidth = -1;
int mRequestedHeight = -1;
int mRequestedFormat = PixelFormat.OPAQUE;
/** @hide */
protected int mRequestedFormat = PixelFormat.OPAQUE;
int mRequestedType = -1;
long mLastLockTime = 0;