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_SERVICE_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_GPU_MEMORY_BUFFER_MANAGER_H_
8 #include "base/basictypes.h"
9 #include "gpu/gpu_export.h"
10 #include "ui/gfx/gpu_memory_buffer.h"
14 class GPU_EXPORT GpuMemoryBufferManagerInterface
{
16 virtual ~GpuMemoryBufferManagerInterface() {}
18 virtual void RegisterGpuMemoryBuffer(int32 id
,
19 gfx::GpuMemoryBufferHandle buffer
,
22 unsigned internalformat
) = 0;
23 virtual void UnregisterGpuMemoryBuffer(int32 id
) = 0;
28 #endif // GPU_COMMAND_BUFFER_SERVICE_GPU_MEMORY_BUFFER_MANAGER_H_