| 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
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..56b9ba97d96f4c3e49f46a5d837fc6a5f09a28ff
|
| --- /dev/null
|
| +++ b/content/common/gpu/gpu_memory_buffer_factory.h
|
| @@ -0,0 +1,31 @@
|
| +// Copyright 2014 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 CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_H_
|
| +#define CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_H_
|
| +
|
| +#include "ui/gfx/geometry/size.h"
|
| +#include "ui/gfx/gpu_memory_buffer.h"
|
| +
|
| +namespace content {
|
| +
|
| +class GpuMemoryBufferFactory {
|
| + public:
|
| + static void Initialize();
|
| + static bool CreateGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle,
|
| + const gfx::Size& size,
|
| + unsigned internalformat,
|
| + unsigned usage);
|
| + static void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle);
|
| + static bool RequestAccessToGpuMemoryBuffer(
|
| + const gfx::GpuMemoryBufferHandle& handle,
|
| + int client_id);
|
| +
|
| + protected:
|
| + virtual ~GpuMemoryBufferFactory();
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_H_
|
|
|