[chromium] Add temporary diagnostics for LayerTreeHost::commitTo crash
authorenne@google.com <enne@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Sep 2011 01:54:35 +0000 (01:54 +0000)
committerenne@google.com <enne@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Sep 2011 01:54:35 +0000 (01:54 +0000)
https://bugs.webkit.org/show_bug.cgi?id=68204

Reviewed by James Robinson.

Add CRASH calls to determine which assumptions are being violated.

Source/WebCore:

* platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
(WebCore::CCLayerTreeHost::commitTo):

Source/WebKit/chromium:

* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::composite):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95256 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHost.cpp
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/src/WebViewImpl.cpp

index 26fa9af..b2fea08 100644 (file)
@@ -1,3 +1,15 @@
+2011-09-15  Adrienne Walker  <enne@google.com>
+
+        [chromium] Add temporary diagnostics for LayerTreeHost::commitTo crash
+        https://bugs.webkit.org/show_bug.cgi?id=68204
+
+        Reviewed by James Robinson.
+
+        Add CRASH calls to determine which assumptions are being violated.
+
+        * platform/graphics/chromium/cc/CCLayerTreeHost.cpp:
+        (WebCore::CCLayerTreeHost::commitTo):
+
 2011-09-15  Mark Hahnenberg  <mhahnenberg@apple.com>
 
         Unzip initialization lists and constructors in JSCell hierarchy (7/7)
index e821aeb..a257b41 100644 (file)
@@ -112,6 +112,10 @@ void CCLayerTreeHost::commitTo(CCLayerTreeHostImpl* hostImpl)
     TRACE_EVENT("CCLayerTreeHost::commitTo", this, 0);
     hostImpl->setSourceFrameNumber(frameNumber());
 
+    // FIXME: Temporary diagnostic for crbug 96719. This shouldn't happen.
+    if (!contentsTextureManager())
+        CRASH();
+
     contentsTextureManager()->reduceMemoryToLimit(TextureManager::reclaimLimitBytes());
     contentsTextureManager()->deleteEvictedTextures(hostImpl->context());
 
index ba7ac3c..4dea957 100644 (file)
@@ -1,3 +1,15 @@
+2011-09-15  Adrienne Walker  <enne@google.com>
+
+        [chromium] Add temporary diagnostics for LayerTreeHost::commitTo crash
+        https://bugs.webkit.org/show_bug.cgi?id=68204
+
+        Reviewed by James Robinson.
+
+        Add CRASH calls to determine which assumptions are being violated.
+
+        * src/WebViewImpl.cpp:
+        (WebKit::WebViewImpl::composite):
+
 2011-09-15  David Levin  <levin@chromium.org>
 
         Remove TestWebKitAPI from the chromium build until it is made to work
index bd1fa0c..608a9be 100644 (file)
@@ -1170,6 +1170,10 @@ void WebViewImpl::composite(bool)
     if (m_pageOverlay)
         m_pageOverlay->update();
 
+    // FIXME: Temporary diagnostic for crbug 96719. This shouldn't happen.
+    if (!m_layerTreeHost)
+        CRASH();
+
     m_layerTreeHost->composite();
 #endif
 #endif