Chromium Code Reviews| Index: gpu/command_buffer/client/gpu_memory_buffer_factory.h |
| diff --git a/gpu/command_buffer/client/gpu_memory_buffer_factory.h b/gpu/command_buffer/client/gpu_memory_buffer_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5ea4bf50d10c2e508718ad2d501fa73798dbfde1 |
| --- /dev/null |
| +++ b/gpu/command_buffer/client/gpu_memory_buffer_factory.h |
| @@ -0,0 +1,26 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_FACTORY_BUFFER_H_ |
| +#define GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_FACTORY_BUFFER_H_ |
| + |
| +#include "gpu/gpu_export.h" |
| + |
| +namespace gpu { |
| +class GpuMemoryBuffer; |
| + |
| +class GPU_EXPORT GpuMemoryBufferFactory { |
| + public: |
| + virtual gpu::GpuMemoryBuffer* CreateGpuMemoryBuffer( |
|
joth
2013/07/26 05:28:05
Out of interest why does this need to be a factory
reveman
2013/07/26 15:40:57
This will replace the ImageFactory interface and b
|
| + size_t width, |
| + size_t height, |
| + unsigned internalformat) = 0; |
| + |
| + protected: |
| + virtual ~GpuMemoryBufferFactory() {} |
| +}; |
| + |
| +} // namespace gpu |
| + |
| +#endif // GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_FACTORY_H_ |