Chromium Code Reviews| Index: content/common/gpu/gpu_memory_buffer_factory_x11_pixmap.h |
| diff --git a/content/common/gpu/gpu_memory_buffer_factory_x11_pixmap.h b/content/common/gpu/gpu_memory_buffer_factory_x11_pixmap.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5560c2889a4a2dba4edf4f801ae621d35d9acc22 |
| --- /dev/null |
| +++ b/content/common/gpu/gpu_memory_buffer_factory_x11_pixmap.h |
| @@ -0,0 +1,27 @@ |
| +// 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_X11_PIXMAP_H_ |
| +#define CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_X11_PIXMAP_H_ |
| + |
| +#include "ui/gfx/gpu_memory_buffer.h" |
| + |
| +namespace content { |
| + |
| +class GpuMemoryBufferFactoryX11Pixmap { |
| + public: |
| + static void Initialize(); |
| + static void CreateGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle); |
| + static void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle); |
| + static bool RequestAccessToGpuMemoryBuffer( |
| + const gfx::GpuMemoryBufferHandle& handle, |
| + int client_id); |
| + |
| + protected: |
| + virtual ~GpuMemoryBufferFactoryX11Pixmap(); |
|
piman
2014/06/17 23:38:11
nit: remove. You're not creating instances of this
reveman
2014/06/18 22:06:28
Added an empty protected implementation as I'd rat
|
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_X11_PIXMAP_H_ |