Commit cdbecea8 authored by Mitsuru Oshima's avatar Mitsuru Oshima Committed by Commit Bot

Force rasterize the new layer for frame

This is required because when the virtual desks takes screenshot,
old layer is already detached, so it'll be copyed as a black.

Bug: 1083951
Test: maually testsed. See bug for repro step.

Change-Id: Ia26398d2d88557a70a970748623f665ac065c46d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2501970Reviewed-by: default avatarAlexander Alekseev <alemate@chromium.org>
Commit-Queue: Mitsuru Oshima <oshima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#821510}
parent ba78714c
......@@ -135,8 +135,9 @@ class FrameHeader::FrameAnimatorView : public views::View,
AddLayerBeneathView(old_layer);
// The old layer is on top and should fade out.
old_layer->SetOpacity(1.f);
// The old layer is on top and should fade out. Make it non opaque
// so that new layer gets resterized immediately.
old_layer->SetOpacity(0.99f);
new_layer->SetOpacity(1.f);
{
ui::ScopedLayerAnimationSettings settings(old_layer->GetAnimator());
......
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