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

Unified Diff: ui/views/mus/surface_context_factory.cc

Issue 2429173005: Mus+Ash: Replace (Server)WindowSurface with (Server)WindowCompositorFrameSink (Closed)
Patch Set: Rebased Created 4 years, 2 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
« no previous file with comments | « ui/views/mus/native_widget_mus_unittest.cc ('k') | ui/views/mus/window_manager_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/surface_context_factory.cc
diff --git a/ui/views/mus/surface_context_factory.cc b/ui/views/mus/surface_context_factory.cc
index 31cb0bc987f8875d58e099525a7ded5e4ba1ef00..626038b5b0568dbd3badf1b726e73f20054a4792 100644
--- a/ui/views/mus/surface_context_factory.cc
+++ b/ui/views/mus/surface_context_factory.cc
@@ -7,10 +7,10 @@
#include "base/memory/ptr_util.h"
#include "cc/resources/shared_bitmap_manager.h"
#include "cc/surfaces/surface_id_allocator.h"
-#include "services/ui/public/cpp/compositor_frame_sink.h"
#include "services/ui/public/cpp/context_provider.h"
#include "services/ui/public/cpp/gpu_service.h"
#include "services/ui/public/cpp/window.h"
+#include "services/ui/public/cpp/window_compositor_frame_sink.h"
#include "ui/compositor/reflector.h"
#include "ui/gl/gl_bindings.h"
#include "ui/views/mus/native_widget_mus.h"
@@ -38,10 +38,12 @@ void SurfaceContextFactory::CreateCompositorFrameSink(
base::WeakPtr<ui::Compositor> compositor) {
ui::Window* window = compositor->window();
NativeWidgetMus* native_widget = NativeWidgetMus::GetForWindow(window);
- ui::mojom::SurfaceType surface_type = native_widget->surface_type();
+ ui::mojom::CompositorFrameSinkType compositor_frame_sink_type =
+ native_widget->compositor_frame_sink_type();
auto compositor_frame_sink = window->RequestCompositorFrameSink(
- surface_type, make_scoped_refptr(new ui::ContextProvider(
- gpu_service_->EstablishGpuChannelSync())));
+ compositor_frame_sink_type,
+ make_scoped_refptr(
+ new ui::ContextProvider(gpu_service_->EstablishGpuChannelSync())));
compositor->SetCompositorFrameSink(std::move(compositor_frame_sink));
}
« no previous file with comments | « ui/views/mus/native_widget_mus_unittest.cc ('k') | ui/views/mus/window_manager_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698