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

Unified Diff: services/ui/surfaces/display_compositor_client.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/surfaces/display_compositor.cc ('k') | services/ui/ws/frame_generator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/surfaces/display_compositor_client.h
diff --git a/services/ui/surfaces/display_compositor_client.h b/services/ui/surfaces/display_compositor_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..5d7436b98d3627865c20013f75e24a8e73aed1ed
--- /dev/null
+++ b/services/ui/surfaces/display_compositor_client.h
@@ -0,0 +1,24 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SERVICES_UI_SURFACES_DISPLAY_COMPOSITOR_CLIENT_H_
+#define SERVICES_UI_SURFACES_DISPLAY_COMPOSITOR_CLIENT_H_
+
+namespace ui {
+
+// TODO(fsamuel: In the future, this will be a mojo interface from mus-gpu to
+// mus-ws.
+class DisplayCompositorClient {
+ public:
+ virtual void OnSurfaceCreated(const cc::SurfaceId& surface_id,
+ const gfx::Size& frame_size,
+ float device_scale_factor) = 0;
+
+ protected:
+ virtual ~DisplayCompositorClient() {}
+};
+
+} // namespace ui
+
+#endif // SERVICES_UI_SURFACES_DISPLAY_COMPOSITOR_CLIENT_H_
« no previous file with comments | « services/ui/surfaces/display_compositor.cc ('k') | services/ui/ws/frame_generator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698