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

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

Issue 2414683003: Mus+Ash: propagate Surface ID to parents (Closed)
Patch Set: Don't follow null surface_info 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
« no previous file with comments | « services/ui/ws/test_utils.cc ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_server.h
diff --git a/services/ui/ws/window_server.h b/services/ui/ws/window_server.h
index 265ac567adbdb2dc80a910ebc53c68ca002ea03f..a572c5e3c813bc346635732f32d7661f0a04588d 100644
--- a/services/ui/ws/window_server.h
+++ b/services/ui/ws/window_server.h
@@ -20,6 +20,7 @@
#include "services/ui/public/interfaces/window_tree.mojom.h"
#include "services/ui/public/interfaces/window_tree_host.mojom.h"
#include "services/ui/surfaces/display_compositor.h"
+#include "services/ui/surfaces/display_compositor_client.h"
#include "services/ui/ws/display.h"
#include "services/ui/ws/gpu_service_proxy_delegate.h"
#include "services/ui/ws/ids.h"
@@ -50,7 +51,8 @@ class WindowServer : public ServerWindowDelegate,
public ServerWindowObserver,
public GpuServiceProxyDelegate,
public UserDisplayManagerDelegate,
- public UserIdTrackerObserver {
+ public UserIdTrackerObserver,
+ public DisplayCompositorClient {
public:
explicit WindowServer(WindowServerDelegate* delegate);
~WindowServer() override;
@@ -194,6 +196,11 @@ class WindowServer : public ServerWindowDelegate,
void ProcessWindowDeleted(ServerWindow* window);
void ProcessWillChangeWindowPredefinedCursor(ServerWindow* window,
mojom::Cursor cursor_id);
+ void ProcessWindowSurfaceCreated(ServerWindow* window,
+ mojom::SurfaceType surface_type,
+ const cc::SurfaceId& surface_id,
+ const gfx::Size& frame_size,
+ float device_scale_factor);
// Sends an |event| to all WindowTrees belonging to |user_id| that might be
// observing events. Skips |ignore_tree| if it is non-null. |target_window| is
@@ -333,6 +340,11 @@ class WindowServer : public ServerWindowDelegate,
void OnGpuChannelEstablished(
scoped_refptr<gpu::GpuChannelHost> gpu_channel) override;
+ // DisplayCompositorClient:
+ void OnSurfaceCreated(const cc::SurfaceId& surface_id,
+ const gfx::Size& frame_size,
+ float device_scale_factor) override;
+
// UserIdTrackerObserver:
void OnActiveUserIdChanged(const UserId& previously_active_id,
const UserId& active_id) override;
« no previous file with comments | « services/ui/ws/test_utils.cc ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698