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

Unified Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 2803993003: Introduce FrameSinkManagerHost in content/browser/. (Closed)
Patch Set: Fix android. Created 3 years, 8 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 | « content/browser/renderer_host/compositor_impl_android.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/compositor_impl_android.cc
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index bfc265f4d4af18e2450629f11828e91d382043fa..e552a34f247987947afe2a813ea30664952882ea 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -49,6 +49,7 @@
#include "components/display_compositor/compositor_overlay_candidate_validator_android.h"
#include "components/display_compositor/gl_helper.h"
#include "components/display_compositor/host_shared_bitmap_manager.h"
+#include "content/browser/compositor/frame_sink_manager_host.h"
#include "content/browser/gpu/browser_gpu_channel_host_factory.h"
#include "content/browser/gpu/browser_gpu_memory_buffer_manager.h"
#include "content/browser/gpu/compositor_util.h"
@@ -97,7 +98,7 @@ struct CompositorDependencies {
CompositorDependencies() : frame_sink_id_allocator(kDefaultClientId) {}
SingleThreadTaskGraphRunner task_graph_runner;
- cc::SurfaceManager surface_manager;
+ FrameSinkManagerHost frame_sink_manager_host;
cc::FrameSinkIdAllocator frame_sink_id_allocator;
#if BUILDFLAG(ENABLE_VULKAN)
@@ -396,7 +397,13 @@ void Compositor::CreateContextProvider(
// static
cc::SurfaceManager* CompositorImpl::GetSurfaceManager() {
- return &g_compositor_dependencies.Get().surface_manager;
+ return g_compositor_dependencies.Get()
+ .frame_sink_manager_host.surface_manager();
+}
+
+// static
+FrameSinkManagerHost* CompositorImpl::GetFrameSinkManagerHost() {
+ return &g_compositor_dependencies.Get().frame_sink_manager_host;
}
// static
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698