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

Unified Diff: services/ui/public/cpp/window.cc

Issue 2452483002: Move GpuMemoryBufferManager and SharedBitmapManager to CompositorFrameSink (Closed)
Patch Set: rebase Created 4 years, 2 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 | « services/ui/public/cpp/window.h ('k') | services/ui/public/cpp/window_compositor_frame_sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/window.cc
diff --git a/services/ui/public/cpp/window.cc b/services/ui/public/cpp/window.cc
index bd4470907165b1950aa175f34cb955914a6f4006..4368a2601a6915283920f80d4332922d429facc1 100644
--- a/services/ui/public/cpp/window.cc
+++ b/services/ui/public/cpp/window.cc
@@ -271,11 +271,13 @@ bool Window::IsDrawn() const {
std::unique_ptr<WindowCompositorFrameSink> Window::RequestCompositorFrameSink(
mojom::CompositorFrameSinkType type,
- scoped_refptr<cc::ContextProvider> context_provider) {
+ scoped_refptr<cc::ContextProvider> context_provider,
+ gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager) {
std::unique_ptr<WindowCompositorFrameSinkBinding>
compositor_frame_sink_binding;
std::unique_ptr<WindowCompositorFrameSink> compositor_frame_sink =
WindowCompositorFrameSink::Create(std::move(context_provider),
+ gpu_memory_buffer_manager,
&compositor_frame_sink_binding);
AttachCompositorFrameSink(type, std::move(compositor_frame_sink_binding));
return compositor_frame_sink;
« no previous file with comments | « services/ui/public/cpp/window.h ('k') | services/ui/public/cpp/window_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698