samans | 345632b | 2017-01-31 18:34:08 | [diff] [blame] | 1 | // Copyright 2017 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 | module cc.mojom; |
| 6 | |
samans | 4b0ea82 | 2017-02-16 19:51:54 | [diff] [blame] | 7 | import "cc/ipc/copy_output_result.mojom"; |
samans | 345632b | 2017-01-31 18:34:08 | [diff] [blame] | 8 | import "cc/ipc/texture_mailbox.mojom"; |
| 9 | import "mojo/common/unguessable_token.mojom"; |
| 10 | import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 11 | |
| 12 | // See cc/output/copy_output_request.h. |
samans | 345632b | 2017-01-31 18:34:08 | [diff] [blame] | 13 | struct CopyOutputRequest { |
| 14 | mojo.common.mojom.UnguessableToken? source; |
| 15 | bool force_bitmap_result; |
| 16 | gfx.mojom.Rect? area; |
samans | 4b0ea82 | 2017-02-16 19:51:54 | [diff] [blame] | 17 | TextureMailbox? texture_mailbox; |
| 18 | CopyOutputResultSender result_sender; |
| 19 | }; |
| 20 | |
| 21 | // When the display compositor is ready to respond to the CopyOutputRequest, |
| 22 | // it uses this interface to send back the result. |
| 23 | interface CopyOutputResultSender { |
| 24 | SendResult(CopyOutputResult result); |
samans | 345632b | 2017-01-31 18:34:08 | [diff] [blame] | 25 | }; |