mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 17:24:29 +00:00
Bug 919712 - Add labels in IPC message wait. r=benjamin
This commit is contained in:
parent
69a7a0d34e
commit
c6760a62f1
@ -1250,7 +1250,7 @@ CompositorOGL::DrawQuad(const Rect& aRect, const Rect& aClipRect,
|
||||
void
|
||||
CompositorOGL::EndFrame()
|
||||
{
|
||||
PROFILER_LABEL("CompositorOGL", "BeginFrame");
|
||||
PROFILER_LABEL("CompositorOGL", "EndFrame");
|
||||
MOZ_ASSERT(mCurrentRenderTarget == mWindowRenderTarget, "Rendering target not properly restored");
|
||||
|
||||
#ifdef MOZ_DUMP_PAINTING
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "base/scoped_nsautorelease_pool.h"
|
||||
#include "GeckoProfiler.h"
|
||||
|
||||
namespace base {
|
||||
|
||||
@ -39,10 +40,12 @@ void MessagePumpDefault::Run(Delegate* delegate) {
|
||||
continue;
|
||||
|
||||
if (delayed_work_time_.is_null()) {
|
||||
PROFILER_LABEL("MessagePump", "Wait");
|
||||
event_.Wait();
|
||||
} else {
|
||||
TimeDelta delay = delayed_work_time_ - TimeTicks::Now();
|
||||
if (delay > TimeDelta()) {
|
||||
PROFILER_LABEL("MessagePump", "Wait");
|
||||
event_.TimedWait(delay);
|
||||
} else {
|
||||
// It looks like delayed_work_time_ indicates a time in the past, so we
|
||||
|
Loading…
x
Reference in New Issue
Block a user