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

Unified Diff: ui/aura/window.h

Issue 2868473002: Implement aura::Window::CreateCompositorFrameSink() (Closed)
Patch Set: Address review issues Created 3 years, 7 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: ui/aura/window.h
diff --git a/ui/aura/window.h b/ui/aura/window.h
index 96fa4fe5c010acd2b31ecfc7535248c9bb9af823..1ab83f04b9eea8cd9ce3a7df9653fc99b3d101c0 100644
--- a/ui/aura/window.h
+++ b/ui/aura/window.h
@@ -31,6 +31,10 @@
#include "ui/gfx/native_widget_types.h"
#include "ui/wm/public/window_types.h"
+namespace cc {
+class CompositorFrameSink;
+}
+
namespace display {
class Display;
}
@@ -304,6 +308,12 @@ class AURA_EXPORT Window : public ui::LayerDelegate,
// Returns true if there was state needing to be cleaned up.
bool CleanupGestureState();
+ // Create a CompositorFrameSink for the aura::Window.
+ std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink();
+
+ // Get the current cc::SurfaceId.
+ cc::SurfaceId GetSurfaceId() const;
+
protected:
// Deletes (or removes if not owned by parent) all child windows. Intended for
// use from the destructor.

Powered by Google App Engine
This is Rietveld 408576698