| Index: ui/gfx/native_pixmap_handle.h
|
| diff --git a/ui/gfx/native_pixmap_handle.h b/ui/gfx/native_pixmap_handle.h
|
| index eca2bd1dd9cddd9a2653fa1516eb60c52e81465c..986c5a29d82fbd7a0bf24f522f344a385a69159a 100644
|
| --- a/ui/gfx/native_pixmap_handle.h
|
| +++ b/ui/gfx/native_pixmap_handle.h
|
| @@ -6,6 +6,8 @@
|
| #define UI_GFX_NATIVE_PIXMAP_HANDLE_H_
|
|
|
| #include <stddef.h>
|
| +#include <stdint.h>
|
| +
|
| #include <vector>
|
|
|
| #include "ui/gfx/gfx_export.h"
|
| @@ -50,6 +52,13 @@ struct GFX_EXPORT NativePixmapHandle {
|
| std::vector<NativePixmapPlane> planes;
|
| };
|
|
|
| +#if defined(USE_OZONE)
|
| +// Returns an instance of |handle| which can be sent over IPC. This duplicates
|
| +// the file-handles, so that the IPC code take ownership of them, without
|
| +// invalidating |handle|.
|
| +NativePixmapHandle CloneHandleForIPC(const NativePixmapHandle& handle);
|
| +#endif
|
| +
|
| } // namespace gfx
|
|
|
| #endif // UI_GFX_NATIVE_PIXMAP_HANDLE_H_
|
|
|