Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: ui/gfx/mac/io_surface.h

Issue 1532813002: Replace IOSurfaceManager by directly passing IOSurface Mach ports over Chrome IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows compile Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698