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

Unified Diff: cc/surfaces/surface_factory.cc

Issue 2757563003: Remove SurfaceFactory::Reset (Closed)
Patch Set: Created 3 years, 9 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/surfaces/surface_factory_unittest.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 c475793ed6fb9ed32be15b09856bf3c972f20e3c..880cb8c828a675fe85cd426bfb9caa05355e6cbc 100644
--- a/cc/surfaces/surface_factory.cc
+++ b/cc/surfaces/surface_factory.cc
@@ -41,14 +41,6 @@ void SurfaceFactory::EvictSurface() {
Destroy(std::move(current_surface_));
}
-void SurfaceFactory::Reset() {
- EvictSurface();
- // Disown Surfaces that are still alive so that they don't try to unref
- // resources that we're not tracking any more.
- weak_factory_.InvalidateWeakPtrs();
- holder_.Reset();
-}
-
void SurfaceFactory::SubmitCompositorFrame(
const LocalSurfaceId& local_surface_id,
CompositorFrame frame,
« no previous file with comments | « cc/surfaces/surface_factory.h ('k') | cc/surfaces/surface_factory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698