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

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

Issue 2388753003: Introduce cc::LocalFrameId and use in SurfaceFactory (Closed)
Patch Set: Fix exo_unittests Created 4 years, 2 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: 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 c263df99674f53aca39d988cb505c983f0080fe7..a4514dd4a6e5930d83345fe218c88d65a9b6f95e 100644
--- a/services/ui/ws/server_window_surface.h
+++ b/services/ui/ws/server_window_surface.h
@@ -50,7 +50,9 @@ class ServerWindowSurface : public mojom::Surface,
cc::CompositorFrame frame,
const SubmitCompositorFrameCallback& callback) override;
- const cc::SurfaceId& id() const { return surface_id_; }
+ const cc::LocalFrameId& local_frame_id() const { return local_frame_id_; }
+
+ cc::SurfaceId GetSurfaceId() const;
// Destroys old surfaces that have been outdated by a new surface.
void DestroySurfacesScheduledForDestruction();
@@ -68,7 +70,7 @@ class ServerWindowSurface : public mojom::Surface,
gfx::Size last_submitted_frame_size_;
- cc::SurfaceId surface_id_;
+ cc::LocalFrameId local_frame_id_;
cc::SurfaceIdAllocator surface_id_allocator_;
cc::SurfaceFactory surface_factory_;
@@ -76,7 +78,7 @@ class ServerWindowSurface : public mojom::Surface,
mojo::Binding<Surface> binding_;
// Set of surface ids that need to be destroyed.
- std::set<cc::SurfaceId> surfaces_scheduled_for_destruction_;
+ std::set<cc::LocalFrameId> surfaces_scheduled_for_destruction_;
bool may_contain_video_ = false;

Powered by Google App Engine
This is Rietveld 408576698