Performance histograms for extension content verification
[chromium-blink-merge.git] / gpu / command_buffer / client / gpu_memory_buffer_factory.h
blobc7f0b4ca4e0bd97c1b7b75c308d5612d5b35f291
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.
5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_FACTORY_BUFFER_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_FACTORY_BUFFER_H_
8 #include "gpu/gpu_export.h"
10 namespace gfx {
11 class GpuMemoryBuffer;
14 namespace gpu {
16 class GPU_EXPORT GpuMemoryBufferFactory {
17 public:
18 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(size_t width,
19 size_t height,
20 unsigned internalformat,
21 unsigned usage) = 0;
23 protected:
24 virtual ~GpuMemoryBufferFactory() {}
27 } // namespace gpu
29 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_FACTORY_H_