Index: ui/gfx/mac/io_surface.h |
diff --git a/ui/gfx/mac/io_surface.h b/ui/gfx/mac/io_surface.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..04ecf5f1109d2fc4601d6bbd99b59b9e1276e6a6 |
--- /dev/null |
+++ b/ui/gfx/mac/io_surface.h |
@@ -0,0 +1,24 @@ |
+// Copyright 2015 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 UI_GFX_MAC_IO_SURFACE_H_ |
+#define UI_GFX_MAC_IO_SURFACE_H_ |
+ |
+#include <IOSurface/IOSurface.h> |
+ |
+#include "ui/gfx/buffer_types.h" |
+#include "ui/gfx/generic_shared_memory_id.h" |
+#include "ui/gfx/geometry/size.h" |
+#include "ui/gfx/gfx_export.h" |
+ |
+namespace gfx { |
+ |
+using IOSurfaceId = GenericSharedMemoryId; |
+ |
+// Helper function to create an IOSurface with a specified size and format. |
+GFX_EXPORT IOSurfaceRef CreateIOSurface(const Size& size, BufferFormat format); |
+ |
+} // namespace content |
+ |
+#endif // UI_GFX_MAC_IO_SURFACE_H_ |