| Index: cc/surfaces/surface_factory.cc
|
| diff --git a/cc/surfaces/surface_factory.cc b/cc/surfaces/surface_factory.cc
|
| index 19caaa4aa5b7a87ab99488f571a6f79af074fd35..8a859f66f277744c60564312909d08e7f588cf97 100644
|
| --- a/cc/surfaces/surface_factory.cc
|
| +++ b/cc/surfaces/surface_factory.cc
|
| @@ -94,6 +94,13 @@
|
| manager_->SurfaceModified(current_surface_->surface_id());
|
| }
|
|
|
| +void SurfaceFactory::ClearSurface() {
|
| + if (!current_surface_)
|
| + return;
|
| + current_surface_->EvictFrame();
|
| + manager_->SurfaceModified(current_surface_->surface_id());
|
| +}
|
| +
|
| void SurfaceFactory::WillDrawSurface(const LocalFrameId& id,
|
| const gfx::Rect& damage_rect) {
|
| client_->WillDrawSurface(id, damage_rect);
|
|
|