Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 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 display.mojom; | |
| 6 | |
| 7 import "ui/gfx/geometry/mojo/geometry.mojom"; | |
| 8 import "ui/display/mojo/display_constants.mojom"; | |
| 9 import "ui/display/mojo/display_mode.mojom"; | |
| 10 | |
| 11 // Corresponds to display::DisplaySnapshot | |
| 12 struct DisplaySnapshot { | |
| 13 int64 display_id; | |
| 14 gfx.mojom.Point origin; | |
| 15 gfx.mojom.Size physical_size; | |
| 16 DisplayConnectionType type; | |
| 17 bool is_aspect_preserving_scaling; | |
| 18 bool has_overscan; | |
| 19 bool has_color_correction_matrix; | |
| 20 string display_name; | |
| 21 string sys_path; | |
| 22 array<display.mojom.DisplayMode> modes; | |
| 23 array<uint8> edid; | |
| 24 bool has_current_mode; | |
| 25 display.mojom.DisplayMode current_mode; | |
|
kylechar
2017/02/09 15:05:53
bool + DisplayMode takes more memory than an int32
thanhph1
2017/02/10 19:54:32
I removed this file.
| |
| 26 bool has_native_mode; | |
| 27 display.mojom.DisplayMode native_mode; | |
| 28 int64 product_id; | |
| 29 string string_representation; | |
|
kylechar
2017/02/09 15:05:53
This isn't part of display::DispalySnapshot and is
thanhph1
2017/02/10 19:54:32
Done, I removed maximum_cursor_size also.
| |
| 30 gfx.mojom.Size maximum_cursor_size; | |
| 31 }; | |
| OLD | NEW |