Commit e974e314 authored by abarth@chromium.org's avatar abarth@chromium.org

Remove call to updateLayerCompositingState in RenderLayer::contentChanged

This call site was already trigginer a CompositingUpdateAfterCompositingInputChange.
Calling updateLayerCompositingState could upgrade to CompositingUpdateRebuildTree,
but there's no reason to do that eagerly. We compute whether that upgrade is
necessary during the compositing update itself.

BUG=343756

Review URL: https://codereview.chromium.org/327963005

git-svn-id: svn://svn.chromium.org/blink/trunk@175939 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent aeb5883b
...@@ -201,10 +201,8 @@ void RenderLayer::contentChanged(ContentChangeType changeType) ...@@ -201,10 +201,8 @@ void RenderLayer::contentChanged(ContentChangeType changeType)
DisableCompositingQueryAsserts disabler; DisableCompositingQueryAsserts disabler;
// This can get called when video becomes accelerated, so the layers may change. // This can get called when video becomes accelerated, so the layers may change.
if (changeType == CanvasChanged || changeType == VideoChanged || changeType == FullScreenChanged) { if (changeType == CanvasChanged || changeType == VideoChanged || changeType == FullScreenChanged)
compositor()->updateLayerCompositingState(this);
compositor()->setNeedsCompositingUpdate(CompositingUpdateAfterCompositingInputChange); compositor()->setNeedsCompositingUpdate(CompositingUpdateAfterCompositingInputChange);
}
if (changeType == CanvasContextChanged) { if (changeType == CanvasContextChanged) {
compositor()->setNeedsCompositingUpdate(CompositingUpdateAfterCompositingInputChange); compositor()->setNeedsCompositingUpdate(CompositingUpdateAfterCompositingInputChange);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment