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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // 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.
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 {
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.
16 int64 display_id;
17 Point origin;
18 Size physical_size;
19 int32 type;
20 bool is_aspect_preserving_scaling;
21 bool has_overscan;
22 string display_name;
23 array<DisplayMode> modes;
24 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.
25 DisplayMode current_mode;
26 bool has_native_mode;
27 DisplayMode native_mode;
28 int64 product_id;
29 string string_representation;
30 };
31
32 interface OzoneDrmGpu {
33 AddGraphicsDevice(string file_path, int32 file_descriptor);
34 CreateWindow(int64 widget);
35 WindowBoundsChanged(int64 widget, Rect bounds);
36
37 RefreshNativeDisplays();
38 ConfigureNativeDisplay(int64 id, DisplayMode mode, Point originhost);
39 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698