mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 01:57:00 +00:00
Merge b-i to m-c a=merge
This commit is contained in:
commit
7c3f7b9ce1
@ -15,7 +15,7 @@
|
||||
<project name="platform_build" path="build" remote="b2g" revision="3a2947df41a480de1457a6dcdbf46ad0af70d8e0">
|
||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||
</project>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="1b974ce130eed3988ff5d012c7bd8431c4aba93b"/>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="62c9bd93341fbfa8bf850c21e73465708f93b503"/>
|
||||
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="45c54a55e31758f7e54e5eafe0d01d387f35897a"/>
|
||||
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
||||
|
@ -19,7 +19,7 @@
|
||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||
</project>
|
||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="1b974ce130eed3988ff5d012c7bd8431c4aba93b"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="62c9bd93341fbfa8bf850c21e73465708f93b503"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="45c54a55e31758f7e54e5eafe0d01d387f35897a"/>
|
||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||
<project name="platform_hardware_ril" path="hardware/ril" remote="b2g" revision="cd88d860656c31c7da7bb310d6a160d0011b0961"/>
|
||||
|
@ -17,7 +17,7 @@
|
||||
</project>
|
||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="1b974ce130eed3988ff5d012c7bd8431c4aba93b"/>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="62c9bd93341fbfa8bf850c21e73465708f93b503"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="45c54a55e31758f7e54e5eafe0d01d387f35897a"/>
|
||||
<project name="moztt" path="external/moztt" remote="b2g" revision="562d357b72279a9e35d4af5aeecc8e1ffa2f44f1"/>
|
||||
<project name="apitrace" path="external/apitrace" remote="apitrace" revision="0ad276e6d4ec40ae2ac214e42c6c81cfc8cd86c3"/>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<project name="platform_build" path="build" remote="b2g" revision="3a2947df41a480de1457a6dcdbf46ad0af70d8e0">
|
||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||
</project>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="1b974ce130eed3988ff5d012c7bd8431c4aba93b"/>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="62c9bd93341fbfa8bf850c21e73465708f93b503"/>
|
||||
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="45c54a55e31758f7e54e5eafe0d01d387f35897a"/>
|
||||
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
||||
|
@ -19,7 +19,7 @@
|
||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||
</project>
|
||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="1b974ce130eed3988ff5d012c7bd8431c4aba93b"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="62c9bd93341fbfa8bf850c21e73465708f93b503"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="45c54a55e31758f7e54e5eafe0d01d387f35897a"/>
|
||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||
<project name="platform_hardware_ril" path="hardware/ril" remote="b2g" revision="cd88d860656c31c7da7bb310d6a160d0011b0961"/>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<project name="platform_build" path="build" remote="b2g" revision="3a2947df41a480de1457a6dcdbf46ad0af70d8e0">
|
||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||
</project>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="1b974ce130eed3988ff5d012c7bd8431c4aba93b"/>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="62c9bd93341fbfa8bf850c21e73465708f93b503"/>
|
||||
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="45c54a55e31758f7e54e5eafe0d01d387f35897a"/>
|
||||
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
||||
|
@ -17,7 +17,7 @@
|
||||
</project>
|
||||
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
||||
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="1b974ce130eed3988ff5d012c7bd8431c4aba93b"/>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="62c9bd93341fbfa8bf850c21e73465708f93b503"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="45c54a55e31758f7e54e5eafe0d01d387f35897a"/>
|
||||
<project name="moztt" path="external/moztt" remote="b2g" revision="562d357b72279a9e35d4af5aeecc8e1ffa2f44f1"/>
|
||||
<project name="apitrace" path="external/apitrace" remote="apitrace" revision="0ad276e6d4ec40ae2ac214e42c6c81cfc8cd86c3"/>
|
||||
|
@ -4,6 +4,6 @@
|
||||
"remote": "",
|
||||
"branch": ""
|
||||
},
|
||||
"revision": "1380aa2d9459bc1711cb5504c4c806038107428e",
|
||||
"revision": "ce1789cc91feafe53596cfd0360cd12f7cc69d3b",
|
||||
"repo_path": "/integration/gaia-central"
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||
</project>
|
||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="1b974ce130eed3988ff5d012c7bd8431c4aba93b"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="62c9bd93341fbfa8bf850c21e73465708f93b503"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="45c54a55e31758f7e54e5eafe0d01d387f35897a"/>
|
||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||
</project>
|
||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="1b974ce130eed3988ff5d012c7bd8431c4aba93b"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="62c9bd93341fbfa8bf850c21e73465708f93b503"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="45c54a55e31758f7e54e5eafe0d01d387f35897a"/>
|
||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
||||
|
@ -17,7 +17,7 @@
|
||||
</project>
|
||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||
<project name="fake-libdvm" path="dalvik" remote="b2g" revision="d50ae982b19f42f0b66d08b9eb306be81687869f"/>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="1b974ce130eed3988ff5d012c7bd8431c4aba93b"/>
|
||||
<project name="gaia" path="gaia" remote="mozillaorg" revision="62c9bd93341fbfa8bf850c21e73465708f93b503"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="45c54a55e31758f7e54e5eafe0d01d387f35897a"/>
|
||||
<project name="moztt" path="external/moztt" remote="b2g" revision="562d357b72279a9e35d4af5aeecc8e1ffa2f44f1"/>
|
||||
<project name="apitrace" path="external/apitrace" remote="apitrace" revision="0ad276e6d4ec40ae2ac214e42c6c81cfc8cd86c3"/>
|
||||
|
@ -17,7 +17,7 @@
|
||||
<copyfile dest="Makefile" src="core/root.mk"/>
|
||||
</project>
|
||||
<project name="fake-dalvik" path="dalvik" remote="b2g" revision="ca1f327d5acc198bb4be62fa51db2c039032c9ce"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="1b974ce130eed3988ff5d012c7bd8431c4aba93b"/>
|
||||
<project name="gaia.git" path="gaia" remote="mozillaorg" revision="62c9bd93341fbfa8bf850c21e73465708f93b503"/>
|
||||
<project name="gonk-misc" path="gonk-misc" remote="b2g" revision="45c54a55e31758f7e54e5eafe0d01d387f35897a"/>
|
||||
<project name="rilproxy" path="rilproxy" remote="b2g" revision="827214fcf38d6569aeb5c6d6f31cb296d1f09272"/>
|
||||
<project name="librecovery" path="librecovery" remote="b2g" revision="891e5069c0ad330d8191bf8c7b879c814258c89f"/>
|
||||
|
@ -1,3 +1,7 @@
|
||||
. "$topsrcdir/browser/config/mozconfigs/linux64/nightly"
|
||||
|
||||
ac_add_options --enable-application=b2g/dev
|
||||
|
||||
# Include Firefox OS fonts.
|
||||
# TODO Uncomment after Mulet ships with the fonts (bug 1011562).
|
||||
#MOZTTDIR=$topsrcdir/moztt
|
||||
|
@ -21,4 +21,8 @@ ac_add_options --enable-warnings-as-errors
|
||||
# Package js shell.
|
||||
export MOZ_PACKAGE_JSSHELL=1
|
||||
|
||||
# Include Firefox OS fonts.
|
||||
# TODO Uncomment after Mulet ships with the fonts (bug 1011562).
|
||||
#MOZTTDIR=$topsrcdir/moztt
|
||||
|
||||
. "$topsrcdir/build/mozconfig.common.override"
|
||||
|
@ -1,3 +1,7 @@
|
||||
. "$topsrcdir/browser/config/mozconfigs/win32/nightly"
|
||||
|
||||
ac_add_options --enable-application=b2g/dev
|
||||
|
||||
# Include Firefox OS fonts.
|
||||
# TODO Uncomment after Mulet ships with the fonts (bug 1011562).
|
||||
#MOZTTDIR=$topsrcdir/moztt
|
||||
|
27
b2g/dev/config/tooltool-manifests/linux64/releng.manifest
Normal file
27
b2g/dev/config/tooltool-manifests/linux64/releng.manifest
Normal file
@ -0,0 +1,27 @@
|
||||
[
|
||||
{
|
||||
"size": 82,
|
||||
"digest": "70a6126249e40aa1da32248bf6bfe45e0d8c87334579ec0cf69403e61b635e27c766d9bf08d530978286552f158ee24c74b0168a57cc6b734dcfed4fc5e09cff",
|
||||
"algorithm": "sha512",
|
||||
"filename": "setup.sh"
|
||||
},
|
||||
{
|
||||
"size": 80458572,
|
||||
"digest": "e5101f9dee1e462f6cbd3897ea57eede41d23981825c7b20d91d23ab461875d54d3dfc24999aa58a31e8b01f49fb3140e05ffe5af2957ef1d1afb89fd0dfe1ad",
|
||||
"algorithm": "sha512",
|
||||
"filename": "gcc.tar.xz"
|
||||
},
|
||||
{
|
||||
"size": 168320,
|
||||
"digest": "c0f4a2da0b07ca6fc69290fbc5ed68f56c6b1ba4d593b220fd49b14ac4885e6ec949e695fd9a7ac464e0e86b652e99f6bd4af849fec072264b29a8f9686d2fc4",
|
||||
"algorithm": "sha512",
|
||||
"filename": "sccache.tar.bz2"
|
||||
},
|
||||
{
|
||||
"size": 31057326,
|
||||
"digest": "b844c3e52be493d2cacafa58c4a924b89c9be8d2dcc2a7c71aed58c253d8035fba4d51df309f73e3c4342a1f3c3898a9a25c4815e2112888d1280f43c41c8e51",
|
||||
"algorithm": "sha512",
|
||||
"filename": "moztt.tar.bz2",
|
||||
"unpack": "True"
|
||||
}
|
||||
]
|
30
b2g/dev/config/tooltool-manifests/macosx64/releng.manifest
Normal file
30
b2g/dev/config/tooltool-manifests/macosx64/releng.manifest
Normal file
@ -0,0 +1,30 @@
|
||||
[
|
||||
{
|
||||
"clang_version": "r183744"
|
||||
},
|
||||
{
|
||||
"size": 88,
|
||||
"digest": "0d2ae9bcd7cea34ec0b768270725e98410dbb3bc150c7381e0dcf3eb5dbb3e69ac76dbb0f46b056151d6a6fa8681cab06da68173ae8598f3397b8f7628e67381",
|
||||
"algorithm": "sha512",
|
||||
"filename": "setup.sh"
|
||||
},
|
||||
{
|
||||
"size": 59602619,
|
||||
"digest": "86662ebc0ef650490559005948c4f0cb015dad72c7cac43732c2bf2995247081e30c139cf8008d19670a0009fc302c4eee2676981ee3f9ff4a15c01af22b783b",
|
||||
"algorithm": "sha512",
|
||||
"filename": "clang.tar.bz2"
|
||||
},
|
||||
{
|
||||
"size": 168320,
|
||||
"digest": "c0f4a2da0b07ca6fc69290fbc5ed68f56c6b1ba4d593b220fd49b14ac4885e6ec949e695fd9a7ac464e0e86b652e99f6bd4af849fec072264b29a8f9686d2fc4",
|
||||
"algorithm": "sha512",
|
||||
"filename": "sccache.tar.bz2"
|
||||
},
|
||||
{
|
||||
"size": 31057326,
|
||||
"digest": "b844c3e52be493d2cacafa58c4a924b89c9be8d2dcc2a7c71aed58c253d8035fba4d51df309f73e3c4342a1f3c3898a9a25c4815e2112888d1280f43c41c8e51",
|
||||
"algorithm": "sha512",
|
||||
"filename": "moztt.tar.bz2",
|
||||
"unpack": "True"
|
||||
}
|
||||
]
|
27
b2g/dev/config/tooltool-manifests/win32/releng.manifest
Normal file
27
b2g/dev/config/tooltool-manifests/win32/releng.manifest
Normal file
@ -0,0 +1,27 @@
|
||||
[
|
||||
{
|
||||
"size": 266240,
|
||||
"digest": "bb345b0e700ffab4d09436981f14b5de84da55a3f18a7f09ebc4364a4488acdeab8d46f447b12ac70f2da1444a68b8ce8b8675f0dae2ccf845e966d1df0f0869",
|
||||
"algorithm": "sha512",
|
||||
"filename": "mozmake.exe"
|
||||
},
|
||||
{
|
||||
"size": 51,
|
||||
"digest": "c8e40edb314eeabfb92c77cf5ff9a7857033f15dd65a00349bcf9e3e5b75624afc71f733b2ff7e029c20a78313038409c2bd022bf7e5a7e0c487fc2c2d640986",
|
||||
"algorithm": "sha512",
|
||||
"filename": "setup.sh"
|
||||
},
|
||||
{
|
||||
"size": 168320,
|
||||
"digest": "c0f4a2da0b07ca6fc69290fbc5ed68f56c6b1ba4d593b220fd49b14ac4885e6ec949e695fd9a7ac464e0e86b652e99f6bd4af849fec072264b29a8f9686d2fc4",
|
||||
"algorithm": "sha512",
|
||||
"filename": "sccache.tar.bz2"
|
||||
},
|
||||
{
|
||||
"size": 31057326,
|
||||
"digest": "b844c3e52be493d2cacafa58c4a924b89c9be8d2dcc2a7c71aed58c253d8035fba4d51df309f73e3c4342a1f3c3898a9a25c4815e2112888d1280f43c41c8e51",
|
||||
"algorithm": "sha512",
|
||||
"filename": "moztt.tar.bz2",
|
||||
"unpack": "True"
|
||||
}
|
||||
]
|
@ -311,7 +311,11 @@ nsDOMCameraControl::nsDOMCameraControl(uint32_t aCameraId,
|
||||
}
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
} else {
|
||||
rv = mCameraControl->SetConfiguration(config);
|
||||
if (haveInitialConfig) {
|
||||
rv = mCameraControl->SetConfiguration(config);
|
||||
} else {
|
||||
rv = NS_OK;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if (NS_FAILED(rv)) {
|
||||
|
@ -398,6 +398,28 @@ let SettingsRequestManager = {
|
||||
return this.queueTaskReturn(aTask, {task: aTask});
|
||||
},
|
||||
|
||||
startRunning: function(aLockID) {
|
||||
let lock = this.lockInfo[aLockID];
|
||||
|
||||
if (!lock) {
|
||||
if (DEBUG) debug("Lock no longer alive, cannot start running");
|
||||
return;
|
||||
}
|
||||
|
||||
lock.consumable = true;
|
||||
if (aLockID == this.settingsLockQueue[0] || this.settingsLockQueue.length == 0) {
|
||||
// If a lock is currently at the head of the queue, run all tasks for
|
||||
// it.
|
||||
if (DEBUG) debug("Start running tasks for " + aLockID);
|
||||
this.queueConsume();
|
||||
} else {
|
||||
// If a lock isn't at the head of the queue, but requests to be run,
|
||||
// simply mark it as consumable, which means it will automatically run
|
||||
// once it comes to the head of the queue.
|
||||
if (DEBUG) debug("Queuing tasks for " + aLockID + " while waiting for " + this.settingsLockQueue[0]);
|
||||
}
|
||||
},
|
||||
|
||||
queueConsume: function() {
|
||||
if (this.settingsLockQueue.length > 0 && this.lockInfo[this.settingsLockQueue[0]].consumable) {
|
||||
Services.tm.currentThread.dispatch(SettingsRequestManager.consumeTasks.bind(this), Ci.nsIThread.DISPATCH_NORMAL);
|
||||
@ -771,12 +793,15 @@ let SettingsRequestManager = {
|
||||
if (DEBUG) debug("Alive lock has pending tasks: " + lock.lockID);
|
||||
this.queueTask("finalize", {lockID: lock.lockID}, principal).then(
|
||||
function() {
|
||||
if (DEBUG) debug("Alive lock " + lockId + " succeeded to force-finalize");
|
||||
if (DEBUG) debug("Alive lock " + lock.lockID + " succeeded to force-finalize");
|
||||
},
|
||||
function(error) {
|
||||
if (DEBUG) debug("Alive lock " + lockId + " failed to force-finalize due to error: " + error);
|
||||
if (DEBUG) debug("Alive lock " + lock.lockID + " failed to force-finalize due to error: " + error);
|
||||
}
|
||||
);
|
||||
// Finalize is considered a task running situation, but it also needs to
|
||||
// queue a task.
|
||||
this.startRunning(lock.lockID);
|
||||
}
|
||||
},
|
||||
|
||||
@ -792,16 +817,14 @@ let SettingsRequestManager = {
|
||||
}
|
||||
},
|
||||
|
||||
forceFinalizeChildLocksOOP: function(aMsgMgr, aPrincipal) {
|
||||
forceFinalizeChildLocksOOP: function(aMsgMgr) {
|
||||
if (DEBUG) debug("Forcing finalize on child locks, OOP");
|
||||
|
||||
let msgMgrPrincipal = this.mmPrincipals.get(aMsgMgr);
|
||||
this.removeObserver(aMsgMgr);
|
||||
|
||||
for (let lockId of Object.keys(this.lockInfo)) {
|
||||
let lock = this.lockInfo[lockId];
|
||||
if (lock._mm === aMsgMgr && msgMgrPrincipal === aPrincipal) {
|
||||
this.enqueueForceFinalize(lock, aPrincipal);
|
||||
if (lock._mm === aMsgMgr) {
|
||||
let principal = this.mmPrincipals.get(lock._mm);
|
||||
this.enqueueForceFinalize(lock, principal);
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -859,7 +882,8 @@ let SettingsRequestManager = {
|
||||
switch (aMessage.name) {
|
||||
case "child-process-shutdown":
|
||||
if (DEBUG) debug("Child process shutdown received.");
|
||||
this.forceFinalizeChildLocksOOP(mm, aMessage.principal);
|
||||
this.forceFinalizeChildLocksOOP(mm);
|
||||
this.removeObserver(mm);
|
||||
break;
|
||||
case "Settings:RegisterForMessages":
|
||||
if (!SettingsPermissions.hasSomeReadPermission(aMessage.principal)) {
|
||||
@ -953,18 +977,7 @@ let SettingsRequestManager = {
|
||||
// running situation, but it also needs to queue a task.
|
||||
case "Settings:Run":
|
||||
if (DEBUG) debug("Received Run");
|
||||
this.lockInfo[msg.lockID].consumable = true;
|
||||
if (msg.lockID == this.settingsLockQueue[0] || this.settingsLockQueue.length == 0) {
|
||||
// If a lock is currently at the head of the queue, run all tasks for
|
||||
// it.
|
||||
if (DEBUG) debug("Running tasks for " + msg.lockID);
|
||||
this.queueConsume();
|
||||
} else {
|
||||
// If a lock isn't at the head of the queue, but requests to be run,
|
||||
// simply mark it as consumable, which means it will automatically run
|
||||
// once it comes to the head of the queue.
|
||||
if (DEBUG) debug("Queuing tasks for " + msg.lockID + " while waiting for " + this.settingsLockQueue[0]);
|
||||
}
|
||||
this.startRunning(msg.lockID);
|
||||
break;
|
||||
default:
|
||||
if (DEBUG) debug("Wrong message: " + aMessage.name);
|
||||
|
@ -526,15 +526,26 @@ nsWindow::StartRemoteDrawing()
|
||||
int bytepp;
|
||||
SurfaceFormat format = HalFormatToSurfaceFormat(display->surfaceformat,
|
||||
&bytepp);
|
||||
return mFramebufferTarget = Factory::CreateDrawTargetForData(
|
||||
BackendType::CAIRO, (uint8_t*)vaddr,
|
||||
IntSize(width, height), mFramebuffer->stride * bytepp, format);
|
||||
mFramebufferTarget = Factory::CreateDrawTargetForData(
|
||||
BackendType::CAIRO, (uint8_t*)vaddr,
|
||||
IntSize(width, height), mFramebuffer->stride * bytepp, format);
|
||||
if (!mBackBuffer ||
|
||||
mBackBuffer->GetSize() != mFramebufferTarget->GetSize() ||
|
||||
mBackBuffer->GetFormat() != mFramebufferTarget->GetFormat()) {
|
||||
mBackBuffer = mFramebufferTarget->CreateSimilarDrawTarget(
|
||||
mFramebufferTarget->GetSize(), mFramebufferTarget->GetFormat());
|
||||
}
|
||||
return mBackBuffer;
|
||||
}
|
||||
|
||||
void
|
||||
nsWindow::EndRemoteDrawing()
|
||||
{
|
||||
if (mFramebufferTarget) {
|
||||
IntSize size = mFramebufferTarget->GetSize();
|
||||
Rect rect(0, 0, size.width, size.height);
|
||||
RefPtr<SourceSurface> source = mBackBuffer->Snapshot();
|
||||
mFramebufferTarget->DrawSurface(source, rect, rect);
|
||||
gralloc_module()->unlock(gralloc_module(), mFramebuffer->handle);
|
||||
}
|
||||
if (mFramebuffer) {
|
||||
|
@ -130,6 +130,15 @@ protected:
|
||||
// framebuffer.
|
||||
mozilla::RefPtr<mozilla::gfx::DrawTarget> mFramebufferTarget;
|
||||
ANativeWindowBuffer* mFramebuffer;
|
||||
// If we're using a BasicCompositor, this is our window back
|
||||
// buffer. The gralloc framebuffer driver expects us to draw the
|
||||
// entire framebuffer on every frame, but gecko expects the
|
||||
// windowing system to be tracking buffer updates for invalidated
|
||||
// regions. We get stuck holding that bag.
|
||||
//
|
||||
// Only accessed on the compositor thread, except during
|
||||
// destruction.
|
||||
mozilla::RefPtr<mozilla::gfx::DrawTarget> mBackBuffer;
|
||||
|
||||
void BringToTop();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user