OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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. |
| 4 |
| 5 #ifndef CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_X11_PIXMAP_H_ |
| 6 #define CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_X11_PIXMAP_H_ |
| 7 |
| 8 #include "ui/gfx/gpu_memory_buffer.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 class GpuMemoryBufferFactoryX11Pixmap { |
| 13 public: |
| 14 static void Initialize(); |
| 15 static void CreateGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle); |
| 16 static void DestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle); |
| 17 static bool RequestAccessToGpuMemoryBuffer( |
| 18 const gfx::GpuMemoryBufferHandle& handle, |
| 19 int client_id); |
| 20 |
| 21 protected: |
| 22 virtual ~GpuMemoryBufferFactoryX11Pixmap() {} |
| 23 }; |
| 24 |
| 25 } // namespace content |
| 26 |
| 27 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_X11_PIXMAP_H_ |
OLD | NEW |