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..c2d6e988382697c8ddfb9fc50ef1a4741700c1ca |
| --- /dev/null |
| +++ b/mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom |
| @@ -0,0 +1,54 @@ |
| +// Copyright 2015 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; |
| + |
| +import "geometry/public/interfaces/geometry.mojom"; |
| + |
| +enum DisplayType { |
| + NONE = 0, |
| + UNKNOWN = 1, |
| + INTERNAL = 2, |
| + VGA = 4, |
| + HDMI = 8, |
| + DVI = 16, |
| + DISPLAYPORT = 32, |
| + NETWORK = 64, |
| + LAST = NETWORK |
| +}; |
| + |
| +struct DisplayMode { |
| + Size size; |
| + bool is_interlaced; |
| + float refresh_rate; |
| +}; |
| + |
| +struct DisplaySnapshot { |
| + // The internal display identifier. |
| + int64 display_id; |
| + Point origin; |
| + Size physical_size; |
| + DisplayType type; |
| + bool has_current_mode; |
| + bool has_native_mode; |
| + array<DisplayMode> modes; |
| + // The mode currently active on this display. |
| + // TODO: can this be just an index into the modes array? |
|
jamesr
2015/08/28 20:49:44
you should stick your name in the TODO thusly: "TO
cdotstout
2015/08/28 20:59:14
Done.
|
| + DisplayMode current_mode; |
| + // The display's native mode. |
| + // TODO: can this be just an index into the modes array? |
| + DisplayMode native_mode; |
| + // The identifier for the model of the display. |
| + 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); |
| +}; |