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

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

Issue 2369793002: WIP: Propagate SurfaceID up window tree hierarchy
Patch Set: Fix input events: EventDispatcher ignores container windows Created 4 years, 3 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/ws/server_window_surface.cc ('k') | services/ui/ws/server_window_surface_manager.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_manager.h
diff --git a/services/ui/ws/server_window_surface_manager.h b/services/ui/ws/server_window_surface_manager.h
index 11d158068fb922cb7161f707980a7de19a2c5e18..afe24ddee9b1ceeae3727cfe01785cc4c32cacac 100644
--- a/services/ui/ws/server_window_surface_manager.h
+++ b/services/ui/ws/server_window_surface_manager.h
@@ -11,6 +11,7 @@
#include "cc/ipc/compositor_frame.mojom.h"
#include "cc/surfaces/surface_factory.h"
#include "cc/surfaces/surface_id.h"
+#include "cc/surfaces/surface_sequence_generator.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "services/ui/public/interfaces/window_tree.mojom.h"
@@ -37,6 +38,12 @@ class ServerWindowSurfaceManager {
mojo::InterfaceRequest<mojom::Surface> request,
mojom::SurfaceClientPtr client);
+ // TODO(fsamuel): This is temporary until we replace SurfaceSequences with
+ // refcounting.
+ cc::SurfaceSequence CreateSurfaceSequence();
+
+ void SatisfySurfaceSequence(const cc::SurfaceSequence& sequence);
+
ServerWindow* window() { return window_; }
ServerWindowSurface* GetDefaultSurface() const;
@@ -56,6 +63,8 @@ class ServerWindowSurfaceManager {
bool IsSurfaceReadyAndNonEmpty(mojom::SurfaceType type) const;
ServerWindow* window_;
+ cc::FrameSinkId frame_sink_id_;
+ cc::SurfaceSequenceGenerator surface_sequence_generator_;
using TypeToSurfaceMap =
std::map<mojom::SurfaceType, std::unique_ptr<ServerWindowSurface>>;
« no previous file with comments | « services/ui/ws/server_window_surface.cc ('k') | services/ui/ws/server_window_surface_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698