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

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

Issue 2464123003: Enabling Aura-Mus clients to submit frames to Mus. (Closed)
Patch Set: Rebase, addressing feedback, removing some unneded imports/deps. Created 4 years, 1 month 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 | « ui/aura/mus/window_compositor_frame_sink.cc ('k') | ui/aura/mus/window_port_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f79ef2b3a0c29cddba6eb2895b27ed0a4d10ffa6..7adcdedee8fd9b6f3cc01d0d9abaae9efb231f06 100644
--- a/ui/aura/mus/window_port_mus.h
+++ b/ui/aura/mus/window_port_mus.h
@@ -13,8 +13,10 @@
#include "base/logging.h"
#include "base/macros.h"
#include "services/ui/public/interfaces/cursor.mojom.h"
+#include "services/ui/public/interfaces/window_tree_constants.mojom.h"
#include "ui/aura/aura_export.h"
#include "ui/aura/mus/mus_types.h"
+#include "ui/aura/mus/window_compositor_frame_sink.h"
#include "ui/aura/mus/window_mus.h"
#include "ui/aura/window_port.h"
#include "ui/gfx/geometry/rect.h"
@@ -51,6 +53,16 @@ class AURA_EXPORT WindowPortMus : public WindowPort, public WindowMus {
ui::mojom::Cursor predefined_cursor() const { return predefined_cursor_; }
void SetPredefinedCursor(ui::mojom::Cursor cursor_id);
+ std::unique_ptr<WindowCompositorFrameSink> RequestCompositorFrameSink(
+ ui::mojom::CompositorFrameSinkType type,
+ scoped_refptr<cc::ContextProvider> context_provider,
+ gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager);
+
+ void AttachCompositorFrameSink(
+ ui::mojom::CompositorFrameSinkType type,
+ std::unique_ptr<WindowCompositorFrameSinkBinding>
+ compositor_frame_sink_binding);
+
void set_surface_id_handler(SurfaceIdHandler* surface_id_handler) {
surface_id_handler_ = surface_id_handler;
}
« no previous file with comments | « ui/aura/mus/window_compositor_frame_sink.cc ('k') | ui/aura/mus/window_port_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698