| Index: gpu/command_buffer/client/gpu_memory_buffer_tracker.h
|
| diff --git a/gpu/command_buffer/client/gpu_memory_buffer_tracker.h b/gpu/command_buffer/client/gpu_memory_buffer_tracker.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d2254a6d2b6b16007535d3b17790d9a751c9d40b
|
| --- /dev/null
|
| +++ b/gpu/command_buffer/client/gpu_memory_buffer_tracker.h
|
| @@ -0,0 +1,31 @@
|
| +// Copyright (c) 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_BUFFER_TRACKER_H_
|
| +#define GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_TRACKER_H_
|
| +
|
| +#include <GLES2/gl2.h>
|
| +
|
| +#include "../common/gles2_cmd_format.h"
|
| +#include "gles2_impl_export.h"
|
| +
|
| +namespace gpu {
|
| +class GpuMemoryBuffer;
|
| +
|
| +namespace gles2 {
|
| +
|
| +// Interface for tracking GpuMemoryBuffers.
|
| +class GLES2_IMPL_EXPORT GpuMemoryBufferTracker {
|
| + public:
|
| + virtual ~GpuMemoryBufferTracker() {}
|
| +
|
| + virtual GLuint CreateBuffer(GLsizei width, GLsizei height) = 0;
|
| + virtual GpuMemoryBuffer* GetBuffer(GLuint image_id) = 0;
|
| + virtual void RemoveBuffer(GLuint image_id) = 0;
|
| +};
|
| +
|
| +} // namespace gles2
|
| +} // namespace gpu
|
| +
|
| +#endif // GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_TRACKER_H_
|
|
|