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

Unified Diff: components/viz/frame_sinks/mojo_frame_sink_manager.cc

Issue 2795823003: Create //components/viz/frame_sinks and move code. (Closed)
Patch Set: Fix DEPS. 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 | « components/viz/frame_sinks/mojo_frame_sink_manager.h ('k') | services/ui/gpu/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/viz/frame_sinks/mojo_frame_sink_manager.cc
diff --git a/services/ui/surfaces/mojo_frame_sink_manager.cc b/components/viz/frame_sinks/mojo_frame_sink_manager.cc
similarity index 92%
rename from services/ui/surfaces/mojo_frame_sink_manager.cc
rename to components/viz/frame_sinks/mojo_frame_sink_manager.cc
index 5595fb5467e0af8de0caf85ba42a63eaedde45c5..e3ede348d28489e29fb0ed1e9a34a535563c68bd 100644
--- a/services/ui/surfaces/mojo_frame_sink_manager.cc
+++ b/components/viz/frame_sinks/mojo_frame_sink_manager.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "services/ui/surfaces/mojo_frame_sink_manager.h"
+#include "components/viz/frame_sinks/mojo_frame_sink_manager.h"
#include <utility>
@@ -12,11 +12,11 @@
#include "cc/scheduler/begin_frame_source.h"
#include "cc/surfaces/display.h"
#include "cc/surfaces/surface_dependency_tracker.h"
-#include "components/display_compositor/gpu_compositor_frame_sink.h"
-#include "components/display_compositor/gpu_root_compositor_frame_sink.h"
-#include "services/ui/surfaces/display_provider.h"
+#include "components/viz/frame_sinks/display_provider.h"
+#include "components/viz/frame_sinks/gpu_compositor_frame_sink.h"
+#include "components/viz/frame_sinks/gpu_root_compositor_frame_sink.h"
-namespace ui {
+namespace viz {
MojoFrameSinkManager::MojoFrameSinkManager(
DisplayProvider* display_provider,
@@ -61,7 +61,7 @@ void MojoFrameSinkManager::CreateRootCompositorFrameSink(
}
compositor_frame_sinks_[frame_sink_id] =
- base::MakeUnique<display_compositor::GpuRootCompositorFrameSink>(
+ base::MakeUnique<GpuRootCompositorFrameSink>(
this, &manager_, frame_sink_id, std::move(display),
std::move(begin_frame_source), std::move(request),
std::move(private_request), std::move(client),
@@ -77,7 +77,7 @@ void MojoFrameSinkManager::CreateCompositorFrameSink(
DCHECK_EQ(0u, compositor_frame_sinks_.count(frame_sink_id));
compositor_frame_sinks_[frame_sink_id] =
- base::MakeUnique<display_compositor::GpuCompositorFrameSink>(
+ base::MakeUnique<GpuCompositorFrameSink>(
this, &manager_, frame_sink_id, std::move(request),
std::move(private_request), std::move(client));
}
@@ -141,4 +141,4 @@ void MojoFrameSinkManager::OnPrivateConnectionLost(
DestroyCompositorFrameSink(frame_sink_id);
}
-} // namespace ui
+} // namespace viz
« no previous file with comments | « components/viz/frame_sinks/mojo_frame_sink_manager.h ('k') | services/ui/gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698