Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2373)

Unified Diff: cc/surfaces/surface_factory.cc

Issue 2609253003: Remove ForceReclaimResources (Closed)
Patch Set: Fix tests and re-enable previous swap behavior Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/surfaces/surface_factory.cc
diff --git a/cc/surfaces/surface_factory.cc b/cc/surfaces/surface_factory.cc
index 8a859f66f277744c60564312909d08e7f588cf97..19caaa4aa5b7a87ab99488f571a6f79af074fd35 100644
--- a/cc/surfaces/surface_factory.cc
+++ b/cc/surfaces/surface_factory.cc
@@ -94,13 +94,6 @@ void SurfaceFactory::RequestCopyOfSurface(
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);

Powered by Google App Engine
This is Rietveld 408576698