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

Unified Diff: services/ui/ws/server_window_surface.h

Issue 2144733005: [WIP] cc: Plumb SurfaceId from clients Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure only SurfaceFactoy and tests can update hierarchy Created 4 years, 5 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 | « services/ui/surfaces/display_compositor.cc ('k') | services/ui/ws/server_window_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/server_window_surface.h
diff --git a/services/ui/ws/server_window_surface.h b/services/ui/ws/server_window_surface.h
index d30e8c34ce1148aee2a6a86a02cafa7375dcc55d..72409ded8ba7736b185a35ddf3dbad9f52b1a98d 100644
--- a/services/ui/ws/server_window_surface.h
+++ b/services/ui/ws/server_window_surface.h
@@ -51,9 +51,6 @@ class ServerWindowSurface : public mojom::Surface,
// Destroys old surfaces that have been outdated by a new surface.
void DestroySurfacesScheduledForDestruction();
- // Registers this with the SurfaceManager
- void RegisterForBeginFrames();
-
private:
ServerWindow* window();
@@ -66,7 +63,7 @@ class ServerWindowSurface : public mojom::Surface,
gfx::Size last_submitted_frame_size_;
cc::SurfaceId surface_id_;
- cc::SurfaceFactory surface_factory_;
+ std::unique_ptr<cc::SurfaceFactory> surface_factory_;
mojom::SurfaceClientPtr client_;
mojo::Binding<Surface> binding_;
@@ -74,8 +71,6 @@ class ServerWindowSurface : public mojom::Surface,
// Set of surface ids that need to be destroyed.
std::set<cc::SurfaceId> surfaces_scheduled_for_destruction_;
- bool registered_surface_factory_client_;
-
DISALLOW_COPY_AND_ASSIGN(ServerWindowSurface);
};
« no previous file with comments | « services/ui/surfaces/display_compositor.cc ('k') | services/ui/ws/server_window_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698