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

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

Issue 2715663007: Implement temporary reference assignment with DisplayCompositor. (Closed)
Patch Set: . Created 3 years, 10 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/window_server.h
diff --git a/services/ui/ws/window_server.h b/services/ui/ws/window_server.h
index 97be57b3bbd8b1db0280a073dfcfd4604c53e7ed..c117dae451bddd3e6556a6b593d57281cab3d3cf 100644
--- a/services/ui/ws/window_server.h
+++ b/services/ui/ws/window_server.h
@@ -283,6 +283,13 @@ class WindowServer : public ServerWindowDelegate,
bool IsUserInHighContrastMode(const UserId& user) const;
+ // Finds the parent client that will embed |surface_id| and claims ownership
+ // of the temporary reference. If no parent client is found then tell GPU to
+ // immediately drop the temporary reference. |window| is the ServerWindow
+ // that corresponds to |surface_id|.
+ void ClaimTemporaryReference(ServerWindow* window,
+ const cc::SurfaceId& surface_id);
+
// Overridden from ServerWindowDelegate:
ServerWindow* GetRootWindow(const ServerWindow* window) override;

Powered by Google App Engine
This is Rietveld 408576698