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

Unified Diff: mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom

Issue 1309273005: native_viewport support for ozone (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
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);
+};

Powered by Google App Engine
This is Rietveld 408576698