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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_linux.cc

Issue 331723003: gpu: Remove Create/DeleteImage IPC by adding an X11_PIXMAP_BUFFER GpuMemoryBuffer type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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
Index: content/common/gpu/client/gpu_memory_buffer_impl_linux.cc
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_linux.cc b/content/common/gpu/client/gpu_memory_buffer_impl_linux.cc
index d885f3f8676d78d45cf0aaf14fd96a98a34076c2..5f5405b9963199bd524fa631e636576d67bec0f1 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_linux.cc
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_linux.cc
@@ -4,7 +4,7 @@
#include "content/common/gpu/client/gpu_memory_buffer_impl.h"
-#include "content/common/gpu/client/gpu_memory_buffer_impl_shm.h"
+#include "content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h"
namespace content {
@@ -13,10 +13,10 @@ scoped_ptr<GpuMemoryBufferImpl> GpuMemoryBufferImpl::Create(
const gfx::Size& size,
unsigned internalformat,
unsigned usage) {
- if (GpuMemoryBufferImplShm::IsConfigurationSupported(
+ if (GpuMemoryBufferImplSharedMemory::IsConfigurationSupported(
size, internalformat, usage)) {
- scoped_ptr<GpuMemoryBufferImplShm> buffer(
- new GpuMemoryBufferImplShm(size, internalformat));
+ scoped_ptr<GpuMemoryBufferImplSharedMemory> buffer(
+ new GpuMemoryBufferImplSharedMemory(size, internalformat));
if (!buffer->Initialize())
return scoped_ptr<GpuMemoryBufferImpl>();
@@ -33,9 +33,9 @@ void GpuMemoryBufferImpl::AllocateForChildProcess(
unsigned usage,
base::ProcessHandle child_process,
const AllocationCallback& callback) {
- if (GpuMemoryBufferImplShm::IsConfigurationSupported(
+ if (GpuMemoryBufferImplSharedMemory::IsConfigurationSupported(
size, internalformat, usage)) {
- GpuMemoryBufferImplShm::AllocateSharedMemoryForChildProcess(
+ GpuMemoryBufferImplSharedMemory::AllocateSharedMemoryForChildProcess(
size, internalformat, child_process, callback);
return;
}
@@ -50,8 +50,8 @@ scoped_ptr<GpuMemoryBufferImpl> GpuMemoryBufferImpl::CreateFromHandle(
unsigned internalformat) {
switch (handle.type) {
case gfx::SHARED_MEMORY_BUFFER: {
- scoped_ptr<GpuMemoryBufferImplShm> buffer(
- new GpuMemoryBufferImplShm(size, internalformat));
+ scoped_ptr<GpuMemoryBufferImplSharedMemory> buffer(
+ new GpuMemoryBufferImplSharedMemory(size, internalformat));
if (!buffer->InitializeFromHandle(handle))
return scoped_ptr<GpuMemoryBufferImpl>();
« no previous file with comments | « content/common/gpu/client/gpu_memory_buffer_impl_android.cc ('k') | content/common/gpu/client/gpu_memory_buffer_impl_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698