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

Unified Diff: services/ui/ws/server_window_compositor_frame_sink_manager.cc

Issue 2494663004: Mus+Ash: ServerWindowCompositorFrameSink => GpuCompositorFrameSink (Closed)
Patch Set: ServerWindowCompositorFrameSinkManager should not reference SurfaceFactory or SurfaceManager 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 | « services/ui/ws/server_window_compositor_frame_sink_manager.h ('k') | services/ui/ws/window_finder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/server_window_compositor_frame_sink_manager.cc
diff --git a/services/ui/ws/server_window_compositor_frame_sink_manager.cc b/services/ui/ws/server_window_compositor_frame_sink_manager.cc
index 0a292250a458bcfabb9581132628584590b45112..f9aa0904b5e9af7761b6294c5f9e982e42f15bf4 100644
--- a/services/ui/ws/server_window_compositor_frame_sink_manager.cc
+++ b/services/ui/ws/server_window_compositor_frame_sink_manager.cc
@@ -6,9 +6,9 @@
#include "mojo/public/cpp/bindings/strong_binding.h"
#include "services/ui/surfaces/display_compositor.h"
+#include "services/ui/ws/gpu_compositor_frame_sink.h"
#include "services/ui/ws/ids.h"
#include "services/ui/ws/server_window.h"
-#include "services/ui/ws/server_window_compositor_frame_sink.h"
#include "services/ui/ws/server_window_delegate.h"
namespace ui {
@@ -59,7 +59,7 @@ void ServerWindowCompositorFrameSinkManager::CreateCompositorFrameSink(
// TODO(fsamuel): Create the CompositorFrameSink through the DisplayCompositor
// mojo interface.
mojo::MakeStrongBinding(
- base::MakeUnique<ServerWindowCompositorFrameSink>(
+ base::MakeUnique<GpuCompositorFrameSink>(
window_->delegate()->GetDisplayCompositor(), frame_sink_id, widget,
gpu_memory_buffer_manager, std::move(context_provider),
std::move(request), std::move(client)),
@@ -134,11 +134,6 @@ void ServerWindowCompositorFrameSinkManager::SetLatestSurfaceInfo(
data.latest_submitted_frame_size = frame_size;
}
-cc::SurfaceManager*
-ServerWindowCompositorFrameSinkManager::GetCompositorFrameSinkManager() {
- return window()->delegate()->GetDisplayCompositor()->manager();
-}
-
bool ServerWindowCompositorFrameSinkManager::
IsCompositorFrameSinkReadyAndNonEmpty(
mojom::CompositorFrameSinkType type) const {
« no previous file with comments | « services/ui/ws/server_window_compositor_frame_sink_manager.h ('k') | services/ui/ws/window_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698