Chromium Code Reviews| Index: mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom |
| diff --git a/mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom b/mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b45bb5e34f3b749eb87d9b5876657bedd2885b1a |
| --- /dev/null |
| +++ b/mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom |
| @@ -0,0 +1,39 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
|
jamesr
2015/08/25 00:30:28
nit: 2015
cdotstout
2015/08/27 19:10:21
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +module mojo; |
| + |
| +import "geometry/public/interfaces/geometry.mojom"; |
| + |
| +struct DisplayMode { |
| + Size size; |
| + bool is_interlaced; |
| + float refresh_rate; |
| +}; |
| + |
| +struct DisplaySnapshot { |
|
jamesr
2015/08/25 00:30:28
how many of these fields do we need today?
cdotstout
2015/08/27 19:10:21
Removed unused fields.
|
| + int64 display_id; |
| + Point origin; |
| + Size physical_size; |
| + int32 type; |
| + bool is_aspect_preserving_scaling; |
| + bool has_overscan; |
| + string display_name; |
| + array<DisplayMode> modes; |
| + bool has_current_mode; |
|
jamesr
2015/08/25 00:30:28
mixing up bools and other types will not pack well
cdotstout
2015/08/27 19:10:21
Done.
|
| + DisplayMode current_mode; |
| + bool has_native_mode; |
| + DisplayMode native_mode; |
| + int64 product_id; |
| + string string_representation; |
| +}; |
| + |
| +interface OzoneDrmGpu { |
| + AddGraphicsDevice(string file_path, int32 file_descriptor); |
| + CreateWindow(int64 widget); |
| + WindowBoundsChanged(int64 widget, Rect bounds); |
| + |
| + RefreshNativeDisplays(); |
| + ConfigureNativeDisplay(int64 id, DisplayMode mode, Point originhost); |
| +}; |