| Index: content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h
|
| diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h b/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h
|
| index d2f0a231b0ea318faf3fcc8dd0605fdf7b24aa18..c1cbfc3c31990c3f628fe92285a73d5fb5e6bab1 100644
|
| --- a/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h
|
| +++ b/content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.h
|
| @@ -11,18 +11,20 @@ struct ANativeWindow;
|
|
|
| namespace content {
|
|
|
| -// Provides implementation of a GPU memory buffer based on a surface texture id.
|
| +// Implementation of GPU memory buffer based on SurfaceTextures.
|
| class GpuMemoryBufferImplSurfaceTexture : public GpuMemoryBufferImpl {
|
| public:
|
| - GpuMemoryBufferImplSurfaceTexture(gfx::Size size, unsigned internalformat);
|
| + GpuMemoryBufferImplSurfaceTexture(const gfx::Size& size,
|
| + unsigned internalformat);
|
| virtual ~GpuMemoryBufferImplSurfaceTexture();
|
|
|
| - bool Initialize(gfx::GpuMemoryBufferHandle handle);
|
| -
|
| static bool IsFormatSupported(unsigned internalformat);
|
| static bool IsUsageSupported(unsigned usage);
|
| + static bool IsConfigurationSupported(unsigned internalformat, unsigned usage);
|
| static int WindowFormat(unsigned internalformat);
|
|
|
| + bool InitializeFromHandle(gfx::GpuMemoryBufferHandle handle);
|
| +
|
| // Overridden from gfx::GpuMemoryBuffer:
|
| virtual void* Map() OVERRIDE;
|
| virtual void Unmap() OVERRIDE;
|
|
|