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

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

Issue 2586323002: mus: Use ui::ContextProviderCommandBuffer. (Closed)
Patch Set: . Created 4 years 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/mus_context_factory.cc ('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 4b55ac1ed06b34bf4a7f4340616ec67d03c0c356..9a881ee884f9055cf1a3a7db2bf46215967c5217 100644
--- a/ui/views/mus/surface_context_factory.cc
+++ b/ui/views/mus/surface_context_factory.cc
@@ -7,7 +7,6 @@
#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/context_provider.h"
#include "services/ui/public/cpp/gpu/gpu.h"
#include "services/ui/public/cpp/window.h"
#include "services/ui/public/cpp/window_compositor_frame_sink.h"
@@ -28,8 +27,8 @@ void SurfaceContextFactory::CreateCompositorFrameSink(
ui::mojom::CompositorFrameSinkType compositor_frame_sink_type =
native_widget->compositor_frame_sink_type();
auto compositor_frame_sink = window->RequestCompositorFrameSink(
- compositor_frame_sink_type, make_scoped_refptr(new ui::ContextProvider(
- gpu_->EstablishGpuChannelSync())),
+ compositor_frame_sink_type,
+ gpu_->CreateContextProvider(gpu_->EstablishGpuChannelSync()),
gpu_->gpu_memory_buffer_manager());
compositor->SetCompositorFrameSink(std::move(compositor_frame_sink));
}
« no previous file with comments | « ui/aura/mus/mus_context_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698