OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 UI_GFX_MAC_IO_SURFACE_H_ |
| 6 #define UI_GFX_MAC_IO_SURFACE_H_ |
| 7 |
| 8 #include <IOSurface/IOSurface.h> |
| 9 |
| 10 #include "ui/gfx/buffer_types.h" |
| 11 #include "ui/gfx/generic_shared_memory_id.h" |
| 12 #include "ui/gfx/geometry/size.h" |
| 13 #include "ui/gfx/gfx_export.h" |
| 14 |
| 15 namespace gfx { |
| 16 |
| 17 using IOSurfaceId = GenericSharedMemoryId; |
| 18 |
| 19 // Helper function to create an IOSurface with a specified size and format. |
| 20 GFX_EXPORT IOSurfaceRef CreateIOSurface(const Size& size, BufferFormat format); |
| 21 |
| 22 } // namespace content |
| 23 |
| 24 #endif // UI_GFX_MAC_IO_SURFACE_H_ |
OLD | NEW |