| Index: services/gfx/compositor/renderer_state.cc
|
| diff --git a/services/gfx/compositor/renderer_state.cc b/services/gfx/compositor/renderer_state.cc
|
| index 37bf319aac87a7a128a4766e76395e675b95cf25..eb4fa0e72f9fda345459f20c64c925d87b5e48f6 100644
|
| --- a/services/gfx/compositor/renderer_state.cc
|
| +++ b/services/gfx/compositor/renderer_state.cc
|
| @@ -39,14 +39,10 @@ bool RendererState::ResetRootScene() {
|
| return false;
|
| }
|
|
|
| -bool RendererState::SetSnapshot(std::unique_ptr<Snapshot> snapshot) {
|
| - snapshot_ = std::move(snapshot);
|
| - if (snapshot_ && snapshot_->valid()) {
|
| - frame_ = snapshot_->frame();
|
| - DCHECK(frame_);
|
| - return true;
|
| - }
|
| - return false;
|
| +void RendererState::SetSnapshot(const scoped_refptr<const Snapshot>& snapshot) {
|
| + current_snapshot_ = snapshot;
|
| + if (current_snapshot_ && !current_snapshot_->is_blocked())
|
| + visible_snapshot_ = current_snapshot_;
|
| }
|
|
|
| std::string RendererState::FormattedLabel() {
|
|
|