mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 11:56:51 +00:00
Bug 918942 - Add label in DrawWindowOverlay to diagnose potential ANR dead locks. r=jmuizelaar
This commit is contained in:
parent
b17bace20c
commit
4ad4c27bca
@ -52,6 +52,7 @@ using mozilla::unused;
|
|||||||
#include "imgIEncoder.h"
|
#include "imgIEncoder.h"
|
||||||
|
|
||||||
#include "nsStringGlue.h"
|
#include "nsStringGlue.h"
|
||||||
|
#include "GeckoProfiler.h" // For PROFILER_LABEL
|
||||||
|
|
||||||
using namespace mozilla;
|
using namespace mozilla;
|
||||||
using namespace mozilla::dom;
|
using namespace mozilla::dom;
|
||||||
@ -2392,6 +2393,7 @@ nsWindow::DrawWindowUnderlay(LayerManager* aManager, nsIntRect aRect)
|
|||||||
void
|
void
|
||||||
nsWindow::DrawWindowOverlay(LayerManager* aManager, nsIntRect aRect)
|
nsWindow::DrawWindowOverlay(LayerManager* aManager, nsIntRect aRect)
|
||||||
{
|
{
|
||||||
|
PROFILER_LABEL("nsWindow", "DrawWindowOverlay");
|
||||||
JNIEnv *env = GetJNIForThread();
|
JNIEnv *env = GetJNIForThread();
|
||||||
NS_ABORT_IF_FALSE(env, "No JNI environment at DrawWindowOverlay()!");
|
NS_ABORT_IF_FALSE(env, "No JNI environment at DrawWindowOverlay()!");
|
||||||
if (!env)
|
if (!env)
|
||||||
|
Loading…
Reference in New Issue
Block a user