| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_IO_SURFACE_H_ | 5 #ifndef GPU_IPC_CLIENT_GPU_MEMORY_BUFFER_IMPL_IO_SURFACE_H_ |
| 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_IO_SURFACE_H_ | 6 #define GPU_IPC_CLIENT_GPU_MEMORY_BUFFER_IMPL_IO_SURFACE_H_ |
| 7 | 7 |
| 8 #include <IOSurface/IOSurface.h> | 8 #include <IOSurface/IOSurface.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| 11 | 11 |
| 12 #include "base/mac/scoped_cftyperef.h" | 12 #include "base/mac/scoped_cftyperef.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "content/common/content_export.h" | 14 #include "gpu/gpu_export.h" |
| 15 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" | 15 #include "gpu/ipc/client/gpu_memory_buffer_impl.h" |
| 16 | 16 |
| 17 namespace content { | 17 namespace gpu { |
| 18 | 18 |
| 19 // Implementation of GPU memory buffer based on IO surfaces. | 19 // Implementation of GPU memory buffer based on IO surfaces. |
| 20 class CONTENT_EXPORT GpuMemoryBufferImplIOSurface : public GpuMemoryBufferImpl { | 20 class GPU_EXPORT GpuMemoryBufferImplIOSurface : public GpuMemoryBufferImpl { |
| 21 public: | 21 public: |
| 22 ~GpuMemoryBufferImplIOSurface() override; | 22 ~GpuMemoryBufferImplIOSurface() override; |
| 23 | 23 |
| 24 static scoped_ptr<GpuMemoryBufferImplIOSurface> CreateFromHandle( | 24 static scoped_ptr<GpuMemoryBufferImplIOSurface> CreateFromHandle( |
| 25 const gfx::GpuMemoryBufferHandle& handle, | 25 const gfx::GpuMemoryBufferHandle& handle, |
| 26 const gfx::Size& size, | 26 const gfx::Size& size, |
| 27 gfx::BufferFormat format, | 27 gfx::BufferFormat format, |
| 28 gfx::BufferUsage usage, | 28 gfx::BufferUsage usage, |
| 29 const DestructionCallback& callback); | 29 const DestructionCallback& callback); |
| 30 | 30 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 51 const DestructionCallback& callback, | 51 const DestructionCallback& callback, |
| 52 IOSurfaceRef io_surface, | 52 IOSurfaceRef io_surface, |
| 53 uint32_t lock_flags); | 53 uint32_t lock_flags); |
| 54 | 54 |
| 55 base::ScopedCFTypeRef<IOSurfaceRef> io_surface_; | 55 base::ScopedCFTypeRef<IOSurfaceRef> io_surface_; |
| 56 uint32_t lock_flags_; | 56 uint32_t lock_flags_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplIOSurface); | 58 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferImplIOSurface); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace content | 61 } // namespace gpu |
| 62 | 62 |
| 63 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_IMPL_IO_SURFACE_H_ | 63 #endif // GPU_IPC_CLIENT_GPU_MEMORY_BUFFER_IMPL_IO_SURFACE_H_ |
| OLD | NEW |