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

Unified Diff: ui/aura/mus/window_port_mus.h

Issue 2875753002: Implement aura::WindowPortMus::CreateCompositorFrameSink() (Closed)
Patch Set: WIP 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/mus/window_port_mus.h
diff --git a/ui/aura/mus/window_port_mus.h b/ui/aura/mus/window_port_mus.h
index b7a933bf1d1cf27e7d975b1e6eb4d83e899d9f0f..4ae99df8faf0e079713aaf4db5c9c46797e8ad6b 100644
--- a/ui/aura/mus/window_port_mus.h
+++ b/ui/aura/mus/window_port_mus.h
@@ -12,7 +12,9 @@
#include "base/logging.h"
#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
#include "cc/surfaces/surface_info.h"
+#include "cc/surfaces/surface_reference_factory.h"
#include "services/ui/public/cpp/client_compositor_frame_sink.h"
#include "services/ui/public/interfaces/cursor/cursor.mojom.h"
#include "services/ui/public/interfaces/window_tree.mojom.h"
@@ -270,6 +272,10 @@ class AURA_EXPORT WindowPortMus : public WindowPort, public WindowMus {
void UpdatePrimarySurfaceInfo();
void UpdateClientSurfaceEmbedder();
+ // Called from ClientCompositorFrameSink.
+ void OnSurfaceChanged(const cc::LocalSurfaceId& local_surface_id,
+ const gfx::Size& surface_size);
+
WindowTreeClient* window_tree_client_;
Window* window_ = nullptr;
@@ -292,6 +298,10 @@ class AURA_EXPORT WindowPortMus : public WindowPort, public WindowMus {
ui::CursorData cursor_;
+ scoped_refptr<cc::SurfaceReferenceFactory> ref_factory_;
+
+ base::WeakPtrFactory<WindowPortMus> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(WindowPortMus);
};

Powered by Google App Engine
This is Rietveld 408576698