Commit 0c74bab1 authored by Stefan Zager's avatar Stefan Zager Committed by Chromium LUCI CQ

Remove dead code

Change-Id: I7e169b86c66e8c3ab5f4fd3b96ceed1d01c5a309
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2643055
Auto-Submit: Stefan Zager <szager@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: default avatarXianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#846150}
parent 05232d83
...@@ -319,14 +319,6 @@ void PaintLayerCompositor::UpdateAssignmentsIfNeeded( ...@@ -319,14 +319,6 @@ void PaintLayerCompositor::UpdateAssignmentsIfNeeded(
update_type = std::max(update_type, kCompositingUpdateRebuildTree); update_type = std::max(update_type, kCompositingUpdateRebuildTree);
} }
GraphicsLayer* current_parent = nullptr;
// Save off our current parent. We need this in subframes, because our
// parent attached us to itself via AttachFrameContentLayersToIframeLayer().
if (!IsMainFrame() && update_root->GetCompositedLayerMapping()) {
current_parent =
update_root->GetCompositedLayerMapping()->MainGraphicsLayer()->Parent();
}
#if DCHECK_IS_ON() #if DCHECK_IS_ON()
if (update_root->GetCompositingState() != kPaintsIntoOwnBacking) { if (update_root->GetCompositingState() != kPaintsIntoOwnBacking) {
AssertWholeTreeNotComposited(*update_root); AssertWholeTreeNotComposited(*update_root);
......
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