New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 764444 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Sep 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 1
Type: Bug



Sign in to add a comment

viz: Printing FrameSinkId labels makes FrameSinkId valid again.

Project Member Reported by kylec...@chromium.org, Sep 12 2017

Issue description

This line in SurfaceManager::SurfaceReferencesToStringImpl() inserts the FrameSinkId back into the map, which means the FrameSinkId is valid again.

auto& label = valid_frame_sink_labels_[surface_id.frame_sink_id()];

If there is a Surface belonging to an invalidated FrameSinkId that hasn't been destroyed yet then the FrameSinkId will be registered again.
 

Comment 1 by staraz@google.com, Sep 13 2017

Status: Started (was: Assigned)
Project Member

Comment 2 by bugdroid1@chromium.org, Sep 14 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/76378d54c37806e7be47c0f1ecc04a4c8fa27960

commit 76378d54c37806e7be47c0f1ecc04a4c8fa27960
Author: Alex Zhang <staraz@chromium.org>
Date: Thu Sep 14 17:03:21 2017

Use map::find() to Look Up For Label

Using map::[] to look up with a surface with invalid FrameSinkId that hasn't
been destroyed will make the FrameSinkId valid again.

Use find() instead of [] to avoid inserting the FrameSinkId back into the map.

Bug:  764444 
Change-Id: Iaccf00c4e15f8bbc32712a13d98ce471c08dd600
Reviewed-on: https://chromium-review.googlesource.com/664839
Commit-Queue: Xingyu Zhang <staraz@chromium.org>
Reviewed-by: kylechar <kylechar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#501970}
[modify] https://crrev.com/76378d54c37806e7be47c0f1ecc04a4c8fa27960/components/viz/service/surfaces/surface_manager.cc
[modify] https://crrev.com/76378d54c37806e7be47c0f1ecc04a4c8fa27960/components/viz/service/surfaces/surface_manager.h

Comment 3 by staraz@chromium.org, Sep 14 2017

Status: Fixed (was: Started)

Comment 4 by laforge@google.com, Nov 8 2017

Components: -Internals>Viz Internals>Services>Viz
Migrating from Internals>Viz to Internals>Services>Viz.

Sign in to add a comment