зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1124452 - Store the main thread's MessageLoop in ChromeProcessController. r=kats
--HG-- extra : rebase_source : 9c163795564dbe2fae1fd3a6e371b6455277d811
This commit is contained in:
Родитель
2c43a0247a
Коммит
0bbcf4d17c
|
@ -3,7 +3,10 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "mozilla/layers/ChromeProcessController.h"
|
||||
#include "ChromeProcessController.h"
|
||||
|
||||
#include "MainThreadUtils.h" // for NS_IsMainThread()
|
||||
#include "base/message_loop.h" // for MessageLoop
|
||||
#include "mozilla/layers/CompositorParent.h"
|
||||
#include "mozilla/layers/APZCCallbackHelper.h"
|
||||
#include "nsLayoutUtils.h"
|
||||
|
@ -14,7 +17,10 @@ using namespace mozilla::widget;
|
|||
|
||||
ChromeProcessController::ChromeProcessController(nsIWidget* aWidget)
|
||||
: mWidget(aWidget)
|
||||
, mUILoop(MessageLoop::current())
|
||||
{
|
||||
// Otherwise we're initializing mUILoop incorrectly.
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
class nsIWidget;
|
||||
|
||||
class MessageLoop;
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
namespace layers {
|
||||
|
@ -46,6 +48,7 @@ public:
|
|||
|
||||
private:
|
||||
nsCOMPtr<nsIWidget> mWidget;
|
||||
MessageLoop* mUILoop;
|
||||
};
|
||||
|
||||
} // namespace layers
|
||||
|
|
Загрузка…
Ссылка в новой задаче