| Index: mojo/services/native_viewport/public/interfaces/native_viewport.mojom
|
| diff --git a/mojo/services/native_viewport/public/interfaces/native_viewport.mojom b/mojo/services/native_viewport/public/interfaces/native_viewport.mojom
|
| index 21cace63071dda8b53476cde964a057d866ea9b0..641d1c0e2e28f398ba22b2e62deeab2494fc2c3c 100644
|
| --- a/mojo/services/native_viewport/public/interfaces/native_viewport.mojom
|
| +++ b/mojo/services/native_viewport/public/interfaces/native_viewport.mojom
|
| @@ -13,10 +13,19 @@ struct ViewportMetrics {
|
| float device_pixel_ratio = 1.0;
|
| };
|
|
|
| +struct SurfaceConfiguration {
|
| + uint8 red_bits = 8;
|
| + uint8 green_bits = 8;
|
| + uint8 blue_bits = 8;
|
| + uint8 alpha_bits = 8;
|
| + uint8 depth_bits;
|
| + uint8 stencil_bits;
|
| +};
|
| +
|
| interface NativeViewport {
|
| // TODO(sky): having a create function is awkward. Should there be a factory
|
| // to create the NativeViewport that takes the size?
|
| - Create(Size size) => (ViewportMetrics metrics);
|
| + Create(Size size, SurfaceConfiguration? requested_configuration) => (ViewportMetrics metrics);
|
|
|
| Show();
|
| Hide();
|
|
|