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

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

Issue 2337913003: Fork cc::OutputSurface into cc::CompositorFrameSink. (Closed)
Patch Set: cfsfork: android-vulkan Created 4 years, 3 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/surface_context_factory.h ('k') | no next file » | 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 d453d1191e276b6451bd4609e2f5069fb494b9ee..5ddc564d36efaaef1bc84b9d2fbacc7926accc97 100644
--- a/ui/views/mus/surface_context_factory.cc
+++ b/ui/views/mus/surface_context_factory.cc
@@ -5,11 +5,10 @@
#include "ui/views/mus/surface_context_factory.h"
#include "base/memory/ptr_util.h"
-#include "cc/output/output_surface.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/gpu_service.h"
-#include "services/ui/public/cpp/output_surface.h"
#include "services/ui/public/cpp/window.h"
#include "ui/compositor/reflector.h"
#include "ui/gl/gl_bindings.h"
@@ -34,15 +33,15 @@ SurfaceContextFactory::SurfaceContextFactory(ui::GpuService* gpu_service)
SurfaceContextFactory::~SurfaceContextFactory() {}
-void SurfaceContextFactory::CreateOutputSurface(
+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();
- std::unique_ptr<cc::OutputSurface> surface(
- new ui::OutputSurface(gpu_service_->EstablishGpuChannelSync(),
- window->RequestSurface(surface_type)));
- compositor->SetOutputSurface(std::move(surface));
+ auto compositor_frame_sink = base::MakeUnique<ui::CompositorFrameSink>(
+ gpu_service_->EstablishGpuChannelSync(),
+ window->RequestSurface(surface_type));
+ compositor->SetCompositorFrameSink(std::move(compositor_frame_sink));
}
std::unique_ptr<ui::Reflector> SurfaceContextFactory::CreateReflector(
« no previous file with comments | « ui/views/mus/surface_context_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698