summaryrefslogtreecommitdiffstats
path: root/mojo/services/gles2/gles2.mojom
blob: d7199d74565bad26a1d5fedcac29b1977f878f08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module mojo {

[Peer=GLES2Client]
interface GLES2 {
  void Initialize(handle<message_pipe> gles2_sync_client);
  void RequestAnimationFrames();
  void CancelAnimationFrames();
  void Destroy();
};

[Peer=GLES2]
interface GLES2Client {
  void ContextLost();
  void DrawAnimationFrame();
};

// TODO(piman): I don't want to have a peer but generator crashes if I don't
// have one. https://crbug.com/320086
[Peer=GLES2]
interface GLES2SyncClient {
  void DidCreateContext(uint64 encoded);
};

}