OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_FACTORY_BUFFER_H_ |
| 6 #define GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_FACTORY_BUFFER_H_ |
| 7 |
| 8 #include "gpu/gpu_export.h" |
| 9 |
| 10 namespace gfx { |
| 11 class GpuMemoryBuffer; |
| 12 } |
| 13 |
| 14 namespace gpu { |
| 15 |
| 16 class GPU_EXPORT GpuMemoryBufferFactory { |
| 17 public: |
| 18 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer( |
| 19 size_t width, |
| 20 size_t height, |
| 21 unsigned internalformat) = 0; |
| 22 |
| 23 protected: |
| 24 virtual ~GpuMemoryBufferFactory() {} |
| 25 }; |
| 26 |
| 27 } // namespace gpu |
| 28 |
| 29 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_FACTORY_H_ |
OLD | NEW |