[Mac] tag the video layers with descriptive name to aid debugging
[WebKit-https.git] / Source / WebKit2 / WebProcess / ios / WebVideoFullscreenManager.mm
index b6b2803..f6c1a7b 100644 (file)
@@ -95,6 +95,9 @@ void WebVideoFullscreenManager::enterFullscreenForNode(Node* node)
     setMediaElement(toHTMLMediaElement(node));
 
     PlatformLayer* videoLayer = [CALayer layer];
+#ifndef NDEBUG
+    [videoLayer setName:@"Web video fullscreen manager layer"];
+#endif
     m_layerHostingContext = LayerHostingContext::createForExternalHostingProcess();
     m_layerHostingContext->setRootLayer(videoLayer);
     setVideoFullscreenLayer(videoLayer);