Index: content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h |
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h b/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h |
index c1bf38a18f84adc0ffe220985504ebc09ddf1517..9f552bcf17103ba3cd0549062c97c54e3e0d1861 100644 |
--- a/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h |
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h |
@@ -12,18 +12,18 @@ class IOSurfaceSupport; |
namespace content { |
-// Provides implementation of a GPU memory buffer based |
-// on an IO surface handle. |
+// Implementation of GPU memory buffer based on IO surfaces. |
class GpuMemoryBufferImplIOSurface : public GpuMemoryBufferImpl { |
public: |
- GpuMemoryBufferImplIOSurface(gfx::Size size, unsigned internalformat); |
+ GpuMemoryBufferImplIOSurface(const gfx::Size& size, unsigned internalformat); |
virtual ~GpuMemoryBufferImplIOSurface(); |
static bool IsFormatSupported(unsigned internalformat); |
static bool IsUsageSupported(unsigned usage); |
+ static bool IsConfigurationSupported(unsigned internalformat, unsigned usage); |
static uint32 PixelFormat(unsigned internalformat); |
- bool Initialize(gfx::GpuMemoryBufferHandle handle); |
+ bool InitializeFromHandle(gfx::GpuMemoryBufferHandle handle); |
// Overridden from gfx::GpuMemoryBuffer: |
virtual void* Map() OVERRIDE; |