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

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

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn Created 5 years, 4 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_shared_memory.h b/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h
index bb26debc7d48e705a3509b0a4030e1d80c9e94c7..fedeae774ba5650c8a8f37c9b7484000308df404 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.h
@@ -17,24 +17,25 @@ class GpuMemoryBufferImplSharedMemory : public GpuMemoryBufferImpl {
static scoped_ptr<GpuMemoryBufferImpl> Create(
gfx::GpuMemoryBufferId id,
const gfx::Size& size,
- Format format,
+ gfx::BufferFormat format,
const DestructionCallback& callback);
static gfx::GpuMemoryBufferHandle AllocateForChildProcess(
gfx::GpuMemoryBufferId id,
const gfx::Size& size,
- Format format,
+ gfx::BufferFormat format,
base::ProcessHandle child_process);
static scoped_ptr<GpuMemoryBufferImpl> CreateFromHandle(
const gfx::GpuMemoryBufferHandle& handle,
const gfx::Size& size,
- Format format,
+ gfx::BufferFormat format,
const DestructionCallback& callback);
- static bool IsFormatSupported(Format format);
- static bool IsUsageSupported(Usage usage);
- static bool IsSizeValidForFormat(const gfx::Size& size, Format format);
+ static bool IsFormatSupported(gfx::BufferFormat format);
+ static bool IsUsageSupported(gfx::BufferUsage usage);
+ static bool IsSizeValidForFormat(const gfx::Size& size,
+ gfx::BufferFormat format);
// Overridden from gfx::GpuMemoryBuffer:
bool Map(void** data) override;
@@ -45,7 +46,7 @@ class GpuMemoryBufferImplSharedMemory : public GpuMemoryBufferImpl {
private:
GpuMemoryBufferImplSharedMemory(gfx::GpuMemoryBufferId id,
const gfx::Size& size,
- Format format,
+ gfx::BufferFormat format,
const DestructionCallback& callback,
scoped_ptr<base::SharedMemory> shared_memory);

Powered by Google App Engine
This is Rietveld 408576698