Bug 918942 - Add label in DrawWindowOverlay to diagnose potential ANR dead locks. r=jmuizelaar

This commit is contained in:
Benoit Girard 2013-09-23 09:33:31 -04:00
parent 66a0475d9e
commit 62e5d6c0fe

View File

@ -52,6 +52,7 @@ using mozilla::unused;
#include "imgIEncoder.h"
#include "nsStringGlue.h"
#include "GeckoProfiler.h" // For PROFILER_LABEL
using namespace mozilla;
using namespace mozilla::dom;
@ -2392,6 +2393,7 @@ nsWindow::DrawWindowUnderlay(LayerManager* aManager, nsIntRect aRect)
void
nsWindow::DrawWindowOverlay(LayerManager* aManager, nsIntRect aRect)
{
PROFILER_LABEL("nsWindow", "DrawWindowOverlay");
JNIEnv *env = GetJNIForThread();
NS_ABORT_IF_FALSE(env, "No JNI environment at DrawWindowOverlay()!");
if (!env)