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

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

Issue 334443005: Delete DeprecatedDirtyCompositingDuringCompositingUpdate (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/compositing/RenderLayerCompositor.cpp
diff --git a/Source/core/rendering/compositing/RenderLayerCompositor.cpp b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
index ee9683c4ea02041fd5fda599ce5046935749a1a3..d4fab7723c1051b906d53c92c08299e1c91fdc01 100644
--- a/Source/core/rendering/compositing/RenderLayerCompositor.cpp
+++ b/Source/core/rendering/compositing/RenderLayerCompositor.cpp
@@ -57,34 +57,6 @@
namespace WebCore {
-class DeprecatedDirtyCompositingDuringCompositingUpdate {
- WTF_MAKE_NONCOPYABLE(DeprecatedDirtyCompositingDuringCompositingUpdate);
-public:
- DeprecatedDirtyCompositingDuringCompositingUpdate(DocumentLifecycle& lifecycle)
- : m_lifecycle(lifecycle)
- , m_deprecatedTransition(lifecycle.state(), DocumentLifecycle::LayoutClean)
- , m_originalState(lifecycle.state())
- {
- }
-
- ~DeprecatedDirtyCompositingDuringCompositingUpdate()
- {
- if (m_originalState != DocumentLifecycle::InCompositingUpdate)
- return;
- if (m_lifecycle.state() != m_originalState) {
- // FIXME: It's crazy that we can trigger a style recalc from inside
- // the compositing update, but that happens in compositing/visibility/hidden-iframe.html.
- ASSERT(m_lifecycle.state() == DocumentLifecycle::LayoutClean || m_lifecycle.state() == DocumentLifecycle::VisualUpdatePending);
- m_lifecycle.advanceTo(m_originalState);
- }
- }
-
-private:
- DocumentLifecycle& m_lifecycle;
- DocumentLifecycle::DeprecatedTransition m_deprecatedTransition;
- DocumentLifecycle::State m_originalState;
-};
-
RenderLayerCompositor::RenderLayerCompositor(RenderView& renderView)
: m_renderView(renderView)
, m_compositingReasonFinder(renderView)
@@ -217,10 +189,12 @@ void RenderLayerCompositor::updateIfNeededRecursive()
ScriptForbiddenScope forbidScript;
- lifecycle().advanceTo(DocumentLifecycle::InCompositingUpdate);
+ // FIXME: enableCompositingModeIfNeeded can trigger a CompositingUpdateRebuildTree,
+ // which asserts that it's not InCompositingUpdate.
+ enableCompositingModeIfNeeded();
ojan 2014/06/11 18:44:47 Incidentally, if we were to continue to invest in
+ lifecycle().advanceTo(DocumentLifecycle::InCompositingUpdate);
updateIfNeeded();
-
lifecycle().advanceTo(DocumentLifecycle::CompositingClean);
DocumentAnimations::startPendingAnimations(m_renderView.document());
@@ -314,17 +288,6 @@ void RenderLayerCompositor::applyOverlayFullscreenVideoAdjustment()
void RenderLayerCompositor::updateIfNeeded()
{
- {
- // FIXME: Notice that we call this function before checking the dirty bits below.
- // We'll need to remove DeprecatedDirtyCompositingDuringCompositingUpdate
- // before moving this function after checking the dirty bits.
- DeprecatedDirtyCompositingDuringCompositingUpdate marker(lifecycle());
-
- // FIXME: enableCompositingModeIfNeeded can trigger a CompositingUpdateRebuildTree,
- // which asserts that it's not InCompositingUpdate.
- enableCompositingModeIfNeeded();
- }
-
CompositingUpdateType updateType = m_pendingUpdateType;
m_pendingUpdateType = CompositingUpdateNone;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698