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

Unified Diff: cc/surfaces/surface_manager.h

Issue 2736053004: SurfaceIds must be reusable as soon as their surfaces are marked destroyed (Closed)
Patch Set: Undo changes in surface 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
Index: cc/surfaces/surface_manager.h
diff --git a/cc/surfaces/surface_manager.h b/cc/surfaces/surface_manager.h
index e4b6f17c5f6efd6e22edeca7795c5dfe9db6748d..12e7d5a35f86051d085a07c8018639ea1a1a8cde 100644
--- a/cc/surfaces/surface_manager.h
+++ b/cc/surfaces/surface_manager.h
@@ -65,11 +65,14 @@ class CC_SURFACES_EXPORT SurfaceManager {
void RequestSurfaceResolution(Surface* pending_surface);
- void RegisterSurface(Surface* surface);
void DeregisterSurface(const SurfaceId& surface_id);
+ std::unique_ptr<Surface> CreateSurface(
+ SurfaceId surface_id,
+ base::WeakPtr<SurfaceFactory> surface_factory);
+
// Destroy the Surface once a set of sequence numbers has been satisfied.
- void Destroy(std::unique_ptr<Surface> surface);
+ void DestroySurface(std::unique_ptr<Surface> surface);
Surface* GetSurfaceForId(const SurfaceId& surface_id);

Powered by Google App Engine
This is Rietveld 408576698