Commit 2d2f0be8 authored by Sammie Quon's avatar Sammie Quon Committed by Commit Bot

shelf: Remove uneeded create render cache.

It seems the opaque background has no children anymore, and repaints
afterwards, so I don't think a render cache is needed.

Test: none
Bug: 10158843
Change-Id: I5f99340f177d8a655f231d3565c972fee337f062
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1868916Reviewed-by: default avatarMitsuru Oshima (slow) <oshima@chromium.org>
Commit-Queue: Sammie Quon <sammiequon@chromium.org>
Cr-Commit-Position: refs/heads/master@{#708020}
parent 23bd0d76
......@@ -257,7 +257,6 @@ void ShelfWidget::DelegateView::UpdateOpaqueBackground() {
shelf->SelectValueForShelfAlignment(0, radius, 0),
shelf->SelectValueForShelfAlignment(0, 0, radius),
});
opaque_background_.AddCacheRenderSurfaceRequest();
}
opaque_background_.SetBounds(opaque_background_bounds);
UpdateDragHandle();
......
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