| Index: cc/surfaces/surface_resource_holder.cc
|
| diff --git a/cc/surfaces/surface_resource_holder.cc b/cc/surfaces/surface_resource_holder.cc
|
| index d142f7f91b38ee1435cf94f989a355bf757d1823..50d31a584eef0021a28b4fef9a24c2d0205ae79c 100644
|
| --- a/cc/surfaces/surface_resource_holder.cc
|
| +++ b/cc/surfaces/surface_resource_holder.cc
|
| @@ -51,7 +51,8 @@ void SurfaceResourceHolder::UnrefResources(
|
| ++it) {
|
| ResourceProvider::ResourceId id = it->id;
|
| ResourceIdCountMap::iterator count_it = resource_id_use_count_map_.find(id);
|
| - DCHECK(count_it != resource_id_use_count_map_.end());
|
| + if (count_it == resource_id_use_count_map_.end())
|
| + continue;
|
| ResourceRefs& ref = count_it->second;
|
| ref.refs_holding_resource_alive -= it->count;
|
| if (ref.refs_holding_resource_alive == 0) {
|
|
|