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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h

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_shared_memory.h
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_shm.h b/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h
similarity index 72%
rename from content/common/gpu/client/gpu_memory_buffer_impl_shm.h
rename to content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h
index 2ba552c50a2fd6b3781c04e2f35f97648fca136d..5ed0bafffca0ea42a08a02db65ee332d8ba21e6d 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_shm.h
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h
@@ -2,18 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_SHM_H_
-#define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_SHM_H_
+#ifndef CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_SHARED_MEMORY_H_
+#define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_SHARED_MEMORY_H_
#include "content/common/gpu/client/gpu_memory_buffer_impl.h"
namespace content {
// Implementation of GPU memory buffer based on shared memory.
-class GpuMemoryBufferImplShm : public GpuMemoryBufferImpl {
+class GpuMemoryBufferImplSharedMemory : public GpuMemoryBufferImpl {
public:
- GpuMemoryBufferImplShm(const gfx::Size& size, unsigned internalformat);
- virtual ~GpuMemoryBufferImplShm();
+ GpuMemoryBufferImplSharedMemory(const gfx::Size& size,
+ unsigned internalformat);
+ virtual ~GpuMemoryBufferImplSharedMemory();
// Allocates a shared memory backed GPU memory buffer with |size| and
// |internalformat| for use by |child_process|.
@@ -41,9 +42,9 @@ class GpuMemoryBufferImplShm : public GpuMemoryBufferImpl {
private:
scoped_ptr<base::SharedMemory> shared_memory_;
- DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplShm);
+ DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplSharedMemory);
};
} // namespace content
-#endif // CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_SHM_H_
+#endif // CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_SHARED_MEMORY_H_

Powered by Google App Engine
This is Rietveld 408576698