Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 blink.mojom; | |
| 6 | |
| 7 // TODO: discuss if this struct can be merged with cc.mojom.SurfaceId; | |
| 8 // If so, cc/ipc needs to be added to dependency of WebKit/public. | |
| 9 struct SurfaceId { | |
| 10 uint32 id_namespace; | |
| 11 uint32 local_id; | |
| 12 uint64 nonce; | |
| 13 }; | |
| 14 | |
| 15 struct SurfaceSequence { | |
| 16 uint32 id_namespace; | |
| 17 uint32 sequence; | |
| 18 }; | |
| 19 | |
| 20 interface OffscreenCanvasSurfaceService { | |
| 21 [ Sync ] | |
| 22 GetSurfaceId() => (SurfaceId surface_id); | |
|
Fady Samuel
2016/06/02 22:32:23
This shouldn't need to be sync.
Justin Novosad
2016/06/07 19:58:44
It is sync because the JS API that calls this (HTM
Fady Samuel
2016/06/07 20:03:08
SurfaceIds don't need to be allocated in the brows
| |
| 23 | |
| 24 RequestSurfaceCreation(SurfaceId surface_id); | |
| 25 | |
| 26 Require(SurfaceId surface_id, SurfaceSequence sequence); | |
| 27 Satisfy(SurfaceSequence sequence); | |
| 28 }; | |
| 29 | |
| 30 | |
| OLD | NEW |