| Index: cc/surfaces/surface_factory.cc
|
| diff --git a/cc/surfaces/surface_factory.cc b/cc/surfaces/surface_factory.cc
|
| index ab7186a39b42181cc9f72174a281d19e565853a7..0d41cae93af2c2dd38aaa1b6a74f3718d6ec7c79 100644
|
| --- a/cc/surfaces/surface_factory.cc
|
| +++ b/cc/surfaces/surface_factory.cc
|
| @@ -34,6 +34,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) {
|
|
|