| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_OZONE_NATIVE_PIXMAP_H_ | 5 #ifndef GPU_IPC_CLIENT_GPU_MEMORY_BUFFER_IMPL_OZONE_NATIVE_PIXMAP_H_ |
| 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_OZONE_NATIVE_PIXMAP_H_ | 6 #define GPU_IPC_CLIENT_GPU_MEMORY_BUFFER_IMPL_OZONE_NATIVE_PIXMAP_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "content/common/content_export.h" | 11 #include "gpu/gpu_export.h" |
| 12 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" | 12 #include "gpu/ipc/client/gpu_memory_buffer_impl.h" |
| 13 | 13 |
| 14 namespace ui { | 14 namespace ui { |
| 15 class ClientNativePixmap; | 15 class ClientNativePixmap; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace content { | 18 namespace gpu { |
| 19 | 19 |
| 20 // Implementation of GPU memory buffer based on Ozone native pixmap. | 20 // Implementation of GPU memory buffer based on Ozone native pixmap. |
| 21 class CONTENT_EXPORT GpuMemoryBufferImplOzoneNativePixmap | 21 class GPU_EXPORT GpuMemoryBufferImplOzoneNativePixmap |
| 22 : public GpuMemoryBufferImpl { | 22 : public GpuMemoryBufferImpl { |
| 23 public: | 23 public: |
| 24 ~GpuMemoryBufferImplOzoneNativePixmap() override; | 24 ~GpuMemoryBufferImplOzoneNativePixmap() override; |
| 25 | 25 |
| 26 static scoped_ptr<GpuMemoryBufferImplOzoneNativePixmap> CreateFromHandle( | 26 static scoped_ptr<GpuMemoryBufferImplOzoneNativePixmap> CreateFromHandle( |
| 27 const gfx::GpuMemoryBufferHandle& handle, | 27 const gfx::GpuMemoryBufferHandle& handle, |
| 28 const gfx::Size& size, | 28 const gfx::Size& size, |
| 29 gfx::BufferFormat format, | 29 gfx::BufferFormat format, |
| 30 gfx::BufferUsage usage, | 30 gfx::BufferUsage usage, |
| 31 const DestructionCallback& callback); | 31 const DestructionCallback& callback); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 51 const gfx::Size& size, | 51 const gfx::Size& size, |
| 52 gfx::BufferFormat format, | 52 gfx::BufferFormat format, |
| 53 const DestructionCallback& callback, | 53 const DestructionCallback& callback, |
| 54 scoped_ptr<ui::ClientNativePixmap> native_pixmap); | 54 scoped_ptr<ui::ClientNativePixmap> native_pixmap); |
| 55 | 55 |
| 56 scoped_ptr<ui::ClientNativePixmap> pixmap_; | 56 scoped_ptr<ui::ClientNativePixmap> pixmap_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplOzoneNativePixmap); | 58 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplOzoneNativePixmap); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace content | 61 } // namespace gpu |
| 62 | 62 |
| 63 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_OZONE_NATIVE_PIXMAP_
H_ | 63 #endif // GPU_IPC_CLIENT_GPU_MEMORY_BUFFER_IMPL_OZONE_NATIVE_PIXMAP_H_ |
| OLD | NEW |