Merge "Force wallpaper surface to 565." into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
9bfb060ac4
@@ -30,6 +30,7 @@ import android.content.Context;
|
|||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.IntentFilter;
|
import android.content.IntentFilter;
|
||||||
import android.content.res.Configuration;
|
import android.content.res.Configuration;
|
||||||
|
import android.graphics.PixelFormat;
|
||||||
import android.graphics.Rect;
|
import android.graphics.Rect;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.IBinder;
|
import android.os.IBinder;
|
||||||
@@ -178,6 +179,9 @@ public abstract class WallpaperService extends Service {
|
|||||||
};
|
};
|
||||||
|
|
||||||
final BaseSurfaceHolder mSurfaceHolder = new BaseSurfaceHolder() {
|
final BaseSurfaceHolder mSurfaceHolder = new BaseSurfaceHolder() {
|
||||||
|
{
|
||||||
|
mRequestedFormat = PixelFormat.RGB_565;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onAllowLockCanvas() {
|
public boolean onAllowLockCanvas() {
|
||||||
|
|||||||
@@ -41,7 +41,8 @@ public abstract class BaseSurfaceHolder implements SurfaceHolder {
|
|||||||
|
|
||||||
int mRequestedWidth = -1;
|
int mRequestedWidth = -1;
|
||||||
int mRequestedHeight = -1;
|
int mRequestedHeight = -1;
|
||||||
int mRequestedFormat = PixelFormat.OPAQUE;
|
/** @hide */
|
||||||
|
protected int mRequestedFormat = PixelFormat.OPAQUE;
|
||||||
int mRequestedType = -1;
|
int mRequestedType = -1;
|
||||||
|
|
||||||
long mLastLockTime = 0;
|
long mLastLockTime = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user