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

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: rebased 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..ccc6941a0434853ca0c295238f1e2e0d2db4e5cd
--- /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(cstout): can this be just an index into the modes array?
+ DisplayMode current_mode;
+ // The display's native mode.
+ // TODO(cstout): 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);
+};
« no previous file with comments | « mojo/services/ozone_drm_gpu/public/interfaces/BUILD.gn ('k') | mojo/services/ozone_drm_host/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698