Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1145)

Unified Diff: Source/core/rendering/compositing/RenderLayerCompositor.cpp

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed config.gni. Minor cleanups. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/compositing/RenderLayerCompositor.cpp
diff --git a/Source/core/rendering/compositing/RenderLayerCompositor.cpp b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
index 69fa42c6204dab39b73542a8e0ee3fca55ea996a..02043c8265de107eb45b6ec937aab47c309a5b41 100644
--- a/Source/core/rendering/compositing/RenderLayerCompositor.cpp
+++ b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
@@ -204,7 +204,7 @@ void RenderLayerCompositor::updateIfNeededRecursive()
DocumentAnimations::startPendingAnimations(m_renderView.document());
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
ASSERT(lifecycle().state() == DocumentLifecycle::CompositingClean);
assertNoUnresolvedDirtyBits();
for (Frame* child = m_renderView.frameView()->frame().tree().firstChild(); child; child = child->tree().nextSibling()) {
@@ -235,7 +235,7 @@ void RenderLayerCompositor::didLayout()
rootRenderLayer()->setNeedsCompositingInputsUpdate();
}
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
void RenderLayerCompositor::assertNoUnresolvedDirtyBits()
{
@@ -294,7 +294,7 @@ void RenderLayerCompositor::updateIfNeeded()
if (updateType >= CompositingUpdateAfterCompositingInputChange) {
CompositingInputsUpdater(updateRoot).update();
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
// FIXME: Move this check to the end of the compositing update.
CompositingInputsUpdater::assertNeedsCompositingInputsUpdateBitsCleared(updateRoot);
#endif
@@ -325,7 +325,7 @@ void RenderLayerCompositor::updateIfNeeded()
if (updater.needsRebuildTree())
updateType = std::max(updateType, CompositingUpdateRebuildTree);
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
// FIXME: Move this check to the end of the compositing update.
GraphicsLayerUpdater::assertNeedsToUpdateGraphicsLayerBitsCleared(*updateRoot);
#endif
@@ -632,7 +632,7 @@ void RenderLayerCompositor::recursiveRepaintLayer(RenderLayer* layer)
layer->stackingNode()->updateLayerListsIfNeeded();
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
LayerListMutationDetector mutationChecker(layer->stackingNode());
#endif

Powered by Google App Engine
This is Rietveld 408576698