| Index: cc/surfaces/surface_factory.cc
|
| diff --git a/cc/surfaces/surface_factory.cc b/cc/surfaces/surface_factory.cc
|
| index 79bbe5eabd1cc762e8f836cccf02e7902f01e259..07f44a7d7846d92d16afd3ed1992c2ddf4e345f2 100644
|
| --- a/cc/surfaces/surface_factory.cc
|
| +++ b/cc/surfaces/surface_factory.cc
|
| @@ -35,6 +35,15 @@ void SurfaceFactory::Destroy(SurfaceId surface_id) {
|
| surface_map_.erase(it);
|
| }
|
|
|
| +void SurfaceFactory::DestroyOnSequence(
|
| + SurfaceId surface_id,
|
| + const std::set<SurfaceSequence>& dependency_set) {
|
| + OwningSurfaceMap::iterator it = surface_map_.find(surface_id);
|
| + DCHECK(it != surface_map_.end());
|
| + DCHECK(it->second->factory() == this);
|
| + manager_->DestroyOnSequence(surface_map_.take_and_erase(it), dependency_set);
|
| +}
|
| +
|
| void SurfaceFactory::SubmitFrame(SurfaceId surface_id,
|
| scoped_ptr<CompositorFrame> frame,
|
| const base::Closure& callback) {
|
|
|