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 import "cc/ipc/surface_id.mojom"; | |
| 8 import "cc/ipc/surface_sequence.mojom"; | |
| 9 | |
| 10 interface OffscreenCanvasSurface { | |
| 11 | |
|
Ben Goodger (Google)
2016/06/17 17:58:02
nit: remove newline
xlai (Olivia)
2016/06/17 20:47:02
Done.
| |
| 12 // TODO(619138): Make creation of surface id Async after implementation | |
| 13 // change on surface_id generator that makes client side be able to generate | |
| 14 // unique surface_id.id_namespace alone. | |
| 15 [ Sync ] | |
|
Ben Goodger (Google)
2016/06/17 17:58:03
nit: remove spaces around "Sync"
xlai (Olivia)
2016/06/17 20:47:02
Done.
| |
| 16 GetSurfaceId() => (cc.mojom.SurfaceId surface_id); | |
| 17 RequestSurfaceCreation(cc.mojom.SurfaceId surface_id); | |
| 18 | |
| 19 Require(cc.mojom.SurfaceId surface_id, cc.mojom.SurfaceSequence sequence); | |
| 20 Satisfy(cc.mojom.SurfaceSequence sequence); | |
| 21 }; | |
| 22 | |
| 23 | |
| OLD | NEW |