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

Unified Diff: cc/surfaces/surface_factory.cc

Issue 2633563003: Revert of Remove ForceReclaimResources (Closed)
Patch Set: 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
« no previous file with comments | « cc/surfaces/surface_factory.h ('k') | cc/test/layer_tree_pixel_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « cc/surfaces/surface_factory.h ('k') | cc/test/layer_tree_pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698