Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_canvas_surface_service.mojom

Issue 2036663003: Establish mojo service between Canvas (blink) and SurfaceManager (browser) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698