Chromium Code Reviews| Index: content/common/gpu/client/gpu_memory_buffer_factory_host.h |
| diff --git a/content/common/gpu/client/gpu_memory_buffer_factory_host.h b/content/common/gpu/client/gpu_memory_buffer_factory_host.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9450770d05f16cceba2be1387fac9593dba6f287 |
| --- /dev/null |
| +++ b/content/common/gpu/client/gpu_memory_buffer_factory_host.h |
| @@ -0,0 +1,35 @@ |
| +// Copyright (c) 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_CLIENT_GPU_MEMORY_BUFFER_FACTORY_HOST_H_ |
| +#define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_FACTORY_HOST_H_ |
| + |
|
reveman
2014/06/11 14:03:22
include base/callback.h
alexst (slow to review)
2014/06/11 14:18:59
Done.
|
| +namespace gfx { |
| +class Size; |
| +struct GpuMemoryBufferHandle; |
| +} |
| + |
| +namespace content { |
| + |
| +class GpuMemoryBufferFactoryHost { |
| + public: |
| + typedef base::Callback<void(const gfx::GpuMemoryBufferHandle& handle)> |
| + CreateGpuMemoryBufferCallback; |
| + |
| + virtual void CreateGpuMemoryBuffer( |
| + const gfx::GpuMemoryBufferHandle& handle, |
| + const gfx::Size& size, |
| + unsigned internalformat, |
| + unsigned usage, |
| + const CreateGpuMemoryBufferCallback& callback) = 0; |
| + virtual void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle, |
| + int32 sync_point) = 0; |
| + |
| + protected: |
| + virtual ~GpuMemoryBufferFactoryHost() {} |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_FACTORY_HOST_H_ |