Index: content/common/gpu/gpu_memory_buffer_factory.h |
diff --git a/content/common/gpu/gpu_memory_buffer_factory.h b/content/common/gpu/gpu_memory_buffer_factory.h |
index 1269c960f203f0cd3c69896eb9c282c274b0f7f5..01b17858f80a07159c0d8dfcd6b21c231b4442d4 100644 |
--- a/content/common/gpu/gpu_memory_buffer_factory.h |
+++ b/content/common/gpu/gpu_memory_buffer_factory.h |
@@ -26,25 +26,15 @@ namespace content { |
class CONTENT_EXPORT GpuMemoryBufferFactory { |
public: |
- struct Configuration { |
- gfx::BufferFormat format; |
- gfx::BufferUsage usage; |
- }; |
- |
virtual ~GpuMemoryBufferFactory() {} |
- // Gets system supported GPU memory buffer factory types. Preferred type at |
- // the front of vector. |
- static void GetSupportedTypes(std::vector<gfx::GpuMemoryBufferType>* types); |
+ // Returns the preferred native GPU memory buffer factory type. |
+ static gfx::GpuMemoryBufferType GetNativeType(); |
// Creates a new factory instance for |type|. |
static scoped_ptr<GpuMemoryBufferFactory> Create( |
gfx::GpuMemoryBufferType type); |
- // Gets supported format/usage configurations. |
- virtual void GetSupportedGpuMemoryBufferConfigurations( |
- std::vector<Configuration>* configurations) = 0; |
- |
// Creates a new GPU memory buffer instance. A valid handle is returned on |
// success. It can be called on any thread. |
virtual gfx::GpuMemoryBufferHandle CreateGpuMemoryBuffer( |