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); |
}; |