OLD | NEW |
---|---|
(Empty) | |
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 | |
7 import "gpu/ipc/common/mailbox.mojom"; | |
8 | |
9 // This interface is used for allocating shared bitmap memory from display | |
danakj
2017/04/06 15:00:51
I think this can be reworded a bit. The API doesn'
xlai (Olivia)
2017/04/06 20:42:26
Done here and elsewhere.
| |
10 // compositor. For mus+ash, this service will live in where the display | |
danakj
2017/04/06 15:00:51
And then I would drop the "For mus+ash..." sentenc
| |
11 // compositor lives. | |
12 // This interface needs to be associated with the RenderMessageFilter interface | |
13 // to prevent running into message ordering issues (CC trying to access a | |
14 // shared bitmap before the registration message below made it to the display | |
15 // compositor). | |
16 interface SharedBitmapManager { | |
17 // Informs the display compositor that the child allocated a shared bitmap. | |
18 AllocatedSharedBitmap(handle<shared_buffer> buffer, gpu.mojom.Mailbox id); | |
Tom Sepez
2017/04/06 16:44:04
nit: maybe call this DidAllocateSharedBitmap(). O
| |
19 | |
20 // Informs the display compositor that the child deleted a shared bitmap. | |
21 DeletedSharedBitmap(gpu.mojom.Mailbox id); | |
Tom Sepez
2017/04/06 16:44:04
nit: maybe call this WillDeleteSharedBitmap(). Th
xlai (Olivia)
2017/04/06 20:42:26
Done here and elsewhere. I think this should be Di
| |
22 }; | |
OLD | NEW |