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

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

Issue 2939953004: viz: Move some code into //components/viz/common. (Closed)
Patch Set: . Created 3 years, 6 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/ws/gpu_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/gpu_host.cc
diff --git a/services/ui/ws/gpu_host.cc b/services/ui/ws/gpu_host.cc
index 4b78a4ac81235ffbb57d8f450c47506bd4b344e3..466c1ef02b6ceda6b3827817fb2f1121731c9351 100644
--- a/services/ui/ws/gpu_host.cc
+++ b/services/ui/ws/gpu_host.cc
@@ -9,12 +9,12 @@
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/threading/thread_task_runner_handle.h"
+#include "components/viz/common/server_gpu_memory_buffer_manager.h"
#include "gpu/ipc/client/gpu_channel_host.h"
#include "gpu/ipc/client/gpu_memory_buffer_impl_shared_memory.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
#include "mojo/public/cpp/system/buffer.h"
#include "mojo/public/cpp/system/platform_handle.h"
-#include "services/ui/common/server_gpu_memory_buffer_manager.h"
#include "services/ui/ws/gpu_client.h"
#include "services/ui/ws/gpu_host_delegate.h"
#include "ui/gfx/buffer_format_util.h"
@@ -50,8 +50,9 @@ DefaultGpuHost::DefaultGpuHost(GpuHostDelegate* delegate)
gpu_main_->CreateGpuService(MakeRequest(&gpu_service_),
std::move(gpu_host_proxy), preferences,
mojo::ScopedSharedBufferHandle());
- gpu_memory_buffer_manager_ = base::MakeUnique<ServerGpuMemoryBufferManager>(
- gpu_service_.get(), next_client_id_++);
+ gpu_memory_buffer_manager_ =
+ base::MakeUnique<viz::ServerGpuMemoryBufferManager>(gpu_service_.get(),
+ next_client_id_++);
}
DefaultGpuHost::~DefaultGpuHost() {}
« no previous file with comments | « services/ui/ws/gpu_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698