OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 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 mojo; | |
6 | |
7 import "geometry/public/interfaces/geometry.mojom"; | |
8 | |
9 struct DisplayMode { | |
10 Size size; | |
11 bool is_interlaced; | |
12 float refresh_rate; | |
13 }; | |
14 | |
15 struct DisplaySnapshot { | |
16 int64 display_id; | |
17 Point origin; | |
18 Size physical_size; | |
19 int32 type; | |
jamesr
2015/08/27 19:35:47
is this an enum?
cdotstout
2015/08/27 21:28:33
Done.
| |
20 bool has_current_mode; | |
jamesr
2015/08/27 19:35:47
could we put some basic documentation here? most o
cdotstout
2015/08/27 21:28:33
Added some docs. Michael please advise if I didn'
spang
2015/08/28 19:38:20
display_id identifies a display attached to the sy
| |
21 bool has_native_mode; | |
22 array<DisplayMode> modes; | |
23 DisplayMode current_mode; | |
24 DisplayMode native_mode; | |
jamesr
2015/08/27 19:35:47
are current / native always members of |modes|? ma
cdotstout
2015/08/27 21:28:33
I think so. Michael, any reason not to make the c
spang
2015/08/28 19:38:19
I think so as well.
| |
25 int64 product_id; | |
26 string string_representation; | |
27 }; | |
28 | |
29 interface OzoneDrmGpu { | |
30 AddGraphicsDevice(string file_path, int32 file_descriptor); | |
31 CreateWindow(int64 widget); | |
32 WindowBoundsChanged(int64 widget, Rect bounds); | |
33 | |
34 RefreshNativeDisplays(); | |
35 ConfigureNativeDisplay(int64 id, DisplayMode mode, Point originhost); | |
36 }; | |
OLD | NEW |