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

Unified Diff: content/child/child_gpu_memory_buffer_manager.cc

Issue 1827123002: Move content/common/gpu/client to gpu/ipc/client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 9 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/child/BUILD.gn ('k') | content/child/child_thread_impl_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_gpu_memory_buffer_manager.cc
diff --git a/content/child/child_gpu_memory_buffer_manager.cc b/content/child/child_gpu_memory_buffer_manager.cc
index 883c99d7b6141f5310bdfd421af8692ed6788678..d6e41ecea220244865ff8a022d01ee95433c2262 100644
--- a/content/child/child_gpu_memory_buffer_manager.cc
+++ b/content/child/child_gpu_memory_buffer_manager.cc
@@ -8,7 +8,7 @@
#include "content/common/child_process_messages.h"
#include "content/common/generic_shared_memory_id_generator.h"
-#include "content/common/gpu/client/gpu_memory_buffer_impl.h"
+#include "gpu/ipc/client/gpu_memory_buffer_impl.h"
namespace content {
namespace {
@@ -50,10 +50,11 @@ ChildGpuMemoryBufferManager::AllocateGpuMemoryBuffer(const gfx::Size& size,
if (!success || handle.is_null())
return nullptr;
- scoped_ptr<GpuMemoryBufferImpl> buffer(GpuMemoryBufferImpl::CreateFromHandle(
- handle, size, format, usage,
- base::Bind(&DeletedGpuMemoryBuffer, base::RetainedRef(sender_),
- handle.id)));
+ scoped_ptr<gpu::GpuMemoryBufferImpl> buffer(
+ gpu::GpuMemoryBufferImpl::CreateFromHandle(
+ handle, size, format, usage,
+ base::Bind(&DeletedGpuMemoryBuffer, base::RetainedRef(sender_),
+ handle.id)));
if (!buffer) {
sender_->Send(new ChildProcessHostMsg_DeletedGpuMemoryBuffer(
handle.id, gpu::SyncToken()));
@@ -75,14 +76,14 @@ ChildGpuMemoryBufferManager::CreateGpuMemoryBufferFromHandle(
gfx::GpuMemoryBuffer*
ChildGpuMemoryBufferManager::GpuMemoryBufferFromClientBuffer(
ClientBuffer buffer) {
- return GpuMemoryBufferImpl::FromClientBuffer(buffer);
+ return gpu::GpuMemoryBufferImpl::FromClientBuffer(buffer);
}
void ChildGpuMemoryBufferManager::SetDestructionSyncToken(
gfx::GpuMemoryBuffer* buffer,
const gpu::SyncToken& sync_token) {
- static_cast<GpuMemoryBufferImpl*>(buffer)
- ->set_destruction_sync_token(sync_token);
+ static_cast<gpu::GpuMemoryBufferImpl*>(buffer)->set_destruction_sync_token(
+ sync_token);
}
} // namespace content
« no previous file with comments | « content/child/BUILD.gn ('k') | content/child/child_thread_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698