Bug 852526 - Make sure the compositor starts unpaused and with a size. r=kats

This changes compositor creation so that we can specify an initial size and
makes sure the local variable in nsWindow reflects that the compositor starts
unpaused.
This commit is contained in:
Chris Lord
2013-03-20 22:45:07 +00:00
parent 40a8974a0d
commit eb2dba59d4
9 changed files with 57 additions and 16 deletions

View File

@@ -657,6 +657,8 @@ public:
bool CanBeMetered() { return mCanBeMetered; }
short ScreenOrientation() { return mScreenOrientation; }
RefCountedJavaObject* ByteBuffer() { return mByteBuffer; }
int Width() { return mWidth; }
int Height() { return mHeight; }
protected:
int mAction;
@@ -686,6 +688,7 @@ protected:
bool mCanBeMetered;
short mScreenOrientation;
nsRefPtr<RefCountedJavaObject> mByteBuffer;
int mWidth, mHeight;
void ReadIntArray(nsTArray<int> &aVals,
JNIEnv *jenv,
@@ -747,6 +750,9 @@ protected:
static jfieldID jScreenOrientationField;
static jfieldID jByteBufferField;
static jfieldID jWidthField;
static jfieldID jHeightField;
public:
enum {
NATIVE_POKE = 0,
@@ -773,9 +779,10 @@ public:
ACTIVITY_RESUMING = 24,
THUMBNAIL = 25,
SCREENORIENTATION_CHANGED = 27,
COMPOSITOR_PAUSE = 28,
COMPOSITOR_RESUME = 29,
NATIVE_GESTURE_EVENT = 30,
COMPOSITOR_CREATE = 28,
COMPOSITOR_PAUSE = 29,
COMPOSITOR_RESUME = 30,
NATIVE_GESTURE_EVENT = 31,
dummy_java_enum_list_end
};