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

Unified Diff: ui/aura/window_port.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_port.h
diff --git a/ui/aura/window_port.h b/ui/aura/window_port.h
index df3da59658480ccb6e46a05c7d63acf8168b41d2..f0ea5bef9785c3341a7840d972834b39853275e3 100644
--- a/ui/aura/window_port.h
+++ b/ui/aura/window_port.h
@@ -10,11 +10,17 @@
#include <memory>
#include <string>
+#include "base/callback.h"
#include "base/observer_list.h"
#include "base/strings/string16.h"
+#include "cc/surfaces/surface_id.h"
#include "ui/aura/aura_export.h"
#include "ui/base/class_property.h"
+namespace cc {
+class CompositorFrameSink;
+}
+
namespace gfx {
class Rect;
}
@@ -70,6 +76,16 @@ class AURA_EXPORT WindowPort {
int64_t old_value,
std::unique_ptr<ui::PropertyData> data) = 0;
+ // Called for creating a cc::CompositorFrameSink for the window.
+ virtual std::unique_ptr<cc::CompositorFrameSink>
+ CreateCompositorFrameSink() = 0;
+
+ // Get the current cc::SurfaceId.
+ virtual cc::SurfaceId GetSurfaceId() const = 0;
+
+ virtual void OnWindowAddedToRootWindow() = 0;
+ virtual void OnWindowRemovingFromRootWindow() = 0;
+
protected:
// Returns the WindowPort associated with a Window.
static WindowPort* Get(Window* window);
« ui/aura/window.cc ('K') | « ui/aura/window.cc ('k') | ui/aura/window_port_local.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698