OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 module cc.mojom; | 5 module cc.mojom; |
6 | 6 |
7 import "cc/ipc/copy_output_result.mojom"; | |
7 import "cc/ipc/texture_mailbox.mojom"; | 8 import "cc/ipc/texture_mailbox.mojom"; |
8 import "mojo/common/unguessable_token.mojom"; | 9 import "mojo/common/unguessable_token.mojom"; |
9 import "ui/gfx/geometry/mojo/geometry.mojom"; | 10 import "ui/gfx/geometry/mojo/geometry.mojom"; |
10 | 11 |
11 // See cc/output/copy_output_request.h. | 12 // See cc/output/copy_output_request.h. |
12 // Note: result_callback_ is not included in this struct. | |
13 struct CopyOutputRequest { | 13 struct CopyOutputRequest { |
14 mojo.common.mojom.UnguessableToken? source; | 14 mojo.common.mojom.UnguessableToken? source; |
15 bool force_bitmap_result; | 15 bool force_bitmap_result; |
16 gfx.mojom.Rect? area; | 16 gfx.mojom.Rect? area; |
danakj
2017/02/15 17:19:57
btw Rect has no IsNull either
Saman Sami
2017/02/15 17:36:50
We are using base::Optional<gfx::Rect> in CopyOutp
danakj
2017/02/15 17:41:59
Hm, I mean to say that the ? here isn't doing anyt
Saman Sami
2017/02/15 17:51:42
Since base::Optional<gfx::Rect> is nullable, it do
danakj
2017/02/15 17:53:17
I guess I still don't understand mojo nullable at
Saman Sami
2017/02/15 17:59:41
If CopyOutputRequest had a gfx::Rect there would b
| |
17 cc.mojom.TextureMailbox? texture_mailbox; | 17 TextureMailbox? texture_mailbox; |
18 CopyOutputResultSender result_sender; | |
18 }; | 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); | |
25 }; | |
OLD | NEW |